aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-21 15:51:32 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-21 15:51:32 +0000
commita664329577170d2ad46d0912acc74b30669f741b (patch)
tree637c538f12f4f3b76c39a4e87b224d6ca71e07b5
parentc62524f3603d4e9eb229edf25172cc0c27cac885 (diff)
downloadelgg-a664329577170d2ad46d0912acc74b30669f741b.tar.gz
elgg-a664329577170d2ad46d0912acc74b30669f741b.tar.bz2
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
-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