aboutsummaryrefslogtreecommitdiffstats
path: root/include/menu.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-05-29 17:59:31 +0200
committerMario Vavti <mario@mariovavti.com>2015-05-29 17:59:31 +0200
commit504050618497d3f3f43bb44b89637ebd767557ce (patch)
tree3528ce991f912fde07104aad897a835c7bc6684a /include/menu.php
parent2514af652490ebe4d379a32c339dd23d9b321897 (diff)
downloadvolse-hubzilla-504050618497d3f3f43bb44b89637ebd767557ce.tar.gz
volse-hubzilla-504050618497d3f3f43bb44b89637ebd767557ce.tar.bz2
volse-hubzilla-504050618497d3f3f43bb44b89637ebd767557ce.zip
should not redefine $var in the function call
Diffstat (limited to 'include/menu.php')
-rw-r--r--include/menu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php
index 2b61ebd34..d20df1d6e 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -86,7 +86,7 @@ function menu_render($menu, $class='', $edit = false, $var = array()) {
for($x = 0; $x < count($menu['items']); $x ++) {
if(in_array($menu['items'][$x]['mitem_link'], $menu_names)) {
$m = menu_fetch($menu['items'][$x]['mitem_link'], $channel_id, get_observer_hash());
- $submenu = menu_render($m, 'dropdown-menu', $edit = false, $var = array('wrap' => 'none'));
+ $submenu = menu_render($m, 'dropdown-menu', $edit = false, array('wrap' => 'none'));
$menu['items'][$x]['submenu'] = $submenu;
}