From a664329577170d2ad46d0912acc74b30669f741b Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 21 Jan 2010 15:51:32 +0000 Subject: Changed default declaration of $vars in elgg_view() to array(). git-svn-id: http://code.elgg.org/elgg/trunk@3823 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/lib/elgglib.php') 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 -- cgit v1.2.3