* @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;
}
if (!is_array($usercache)) {
- $usercache = array();
+ $usercache = array();
}
if (!is_array($vars)) {
}
if (empty($vars)) {
- $vars = array();
+ $vars = array();
}
// Load session and configuration variables into $vars