aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-03 10:14:23 +0000
committerMario <mario@mariovavti.com>2019-11-03 11:15:12 +0100
commit9f9122ab8ebad3f4ea5c499a454dc7ebf289e348 (patch)
tree8489f99150d75f9a3d2710003cac0e57bd4a4bba /Zotlabs/Module
parentd0661cd4a30db7042835ca3ffda6a194d6bad9a7 (diff)
downloadvolse-hubzilla-9f9122ab8ebad3f4ea5c499a454dc7ebf289e348.tar.gz
volse-hubzilla-9f9122ab8ebad3f4ea5c499a454dc7ebf289e348.tar.bz2
volse-hubzilla-9f9122ab8ebad3f4ea5c499a454dc7ebf289e348.zip
fix issue #1402
(cherry picked from commit 4a1c2208866360b5fe54eea71ff8e62bd6d63045)
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Menu.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Menu.php b/Zotlabs/Module/Menu.php
index ee6b45f87..836f6a1d5 100644
--- a/Zotlabs/Module/Menu.php
+++ b/Zotlabs/Module/Menu.php
@@ -54,9 +54,10 @@ class Menu extends \Zotlabs\Web\Controller {
if($_REQUEST['menu_system'])
$_REQUEST['menu_flags'] |= MENU_SYSTEM;
- $menu_id = ((argc() > 1) ? intval(argv(1)) : 0);
+ $menu_id = ((argc() > 2) ? intval(argv(2)) : 0);
+
if($menu_id) {
- $_REQUEST['menu_id'] = intval(argv(1));
+ $_REQUEST['menu_id'] = $menu_id;
$r = menu_edit($_REQUEST);
if($r) {
menu_sync_packet($uid,get_observer_hash(),$menu_id);