aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Menu.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-11-04 14:26:12 -0800
committerzotlabs <mike@macgirvin.com>2019-11-04 14:26:12 -0800
commit1358a81c32ff9dff2e88b196c63f299788b05b57 (patch)
treedc9210141cf787893eb5bbd9729b24b56bf4fa4d /Zotlabs/Module/Menu.php
parent2d08e0955a328fa53f373949f58995ca2a8b736a (diff)
parentaa137fb2d2ddd71f89eea4618cac1594d020ed3a (diff)
downloadvolse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.tar.gz
volse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.tar.bz2
volse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Menu.php')
-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);