diff options
author | Mario <mario@mariovavti.com> | 2019-11-03 10:14:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-03 11:15:12 +0100 |
commit | 9f9122ab8ebad3f4ea5c499a454dc7ebf289e348 (patch) | |
tree | 8489f99150d75f9a3d2710003cac0e57bd4a4bba /Zotlabs | |
parent | d0661cd4a30db7042835ca3ffda6a194d6bad9a7 (diff) | |
download | volse-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')
-rw-r--r-- | Zotlabs/Module/Menu.php | 5 |
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); |