diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-08 18:40:56 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-08 18:40:56 -0700 |
commit | f0847e6f32ceb5a91109f968225b3492dcfe6c9c (patch) | |
tree | 99d429acaf36113f1dc09414560c5cfe5b2731f5 /include/menu.php | |
parent | b28d3015fe5d65858736177e306f17543a629fc0 (diff) | |
download | volse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.tar.gz volse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.tar.bz2 volse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.zip |
debugging menu sync
Diffstat (limited to 'include/menu.php')
-rw-r--r-- | include/menu.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/menu.php b/include/menu.php index 32d8630a6..075372515 100644 --- a/include/menu.php +++ b/include/menu.php @@ -238,7 +238,6 @@ function menu_edit($arr) { return false; } - $r = q("select * from menu where menu_id = %d and menu_channel_id = %d limit 1", intval($menu_id), intval($menu_channel_id) @@ -391,7 +390,7 @@ function menu_del_item($menu_id,$uid,$item_id) { function menu_sync_packet($uid,$observer_hash,$menu_id,$delete = false) { $r = menu_fetch_id($menu_id,$uid); if($r) { - $m = menu_fetch($r[0]['menu_name'],$uid,$observer_hash); + $m = menu_fetch($r['menu_name'],$uid,$observer_hash); if($m) { if($delete) $m['menu_delete'] = 1; |