aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 059e42fd7..19451c152 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -172,13 +172,13 @@ function elgg_get_view_location($view, $viewtype = '') {
* @param string $viewtype If set, forces the viewtype for the elgg_view call to be this value (default: standard detection)
* @return string The HTML content
*/
-function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype = '') {
+function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $viewtype = '') {
global $CONFIG;
static $usercache;
// basic checking for bad paths
if (strpos($view, '..') !== false) {
- return false;
+ return false;
}
$view_orig = $view;
@@ -190,7 +190,7 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
}
if (!is_array($usercache)) {
- $usercache = array();
+ $usercache = array();
}
if (!is_array($vars)) {
@@ -199,7 +199,7 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
}
if (empty($vars)) {
- $vars = array();
+ $vars = array();
}
// Load session and configuration variables into $vars