aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-11-03 14:03:00 +0100
committerMax Kostikov <max@kostikov.co>2019-11-03 14:03:00 +0100
commit64c6e25896bc5b8f899abdad4e52a9fe6c88a66c (patch)
tree8489f99150d75f9a3d2710003cac0e57bd4a4bba /Zotlabs
parentd0661cd4a30db7042835ca3ffda6a194d6bad9a7 (diff)
parent9f9122ab8ebad3f4ea5c499a454dc7ebf289e348 (diff)
downloadvolse-hubzilla-64c6e25896bc5b8f899abdad4e52a9fe6c88a66c.tar.gz
volse-hubzilla-64c6e25896bc5b8f899abdad4e52a9fe6c88a66c.tar.bz2
volse-hubzilla-64c6e25896bc5b8f899abdad4e52a9fe6c88a66c.zip
Merge branch 'cherry-pick-4a1c2208' into 'dev'
fix issue #1402 See merge request hubzilla/core!1764
Diffstat (limited to 'Zotlabs')
-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);