diff options
author | friendica <info@friendica.com> | 2013-08-11 19:20:05 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-11 19:20:05 -0700 |
commit | 1600e72158500f002716057882762b0a375eef8f (patch) | |
tree | 9fd4a5c944856261710be5139c5bec942cc61b2e | |
parent | 6191cfef2adaa52019940cc448e28e2ad1a7ae6d (diff) | |
download | volse-hubzilla-1600e72158500f002716057882762b0a375eef8f.tar.gz volse-hubzilla-1600e72158500f002716057882762b0a375eef8f.tar.bz2 volse-hubzilla-1600e72158500f002716057882762b0a375eef8f.zip |
debugging user menus
-rw-r--r-- | include/menu.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/menu.php b/include/menu.php index 98c18a45b..783212a5b 100644 --- a/include/menu.php +++ b/include/menu.php @@ -4,7 +4,7 @@ require_once('include/security.php'); function menu_fetch($name,$uid,$observer_xchan) { - $sql_options = permission_sql($uid); + $sql_options = permissions_sql($uid); $r = q("select * from menu where menu_channel_id = %d and menu_name = '%s' limit 1", intval($uid), @@ -14,14 +14,12 @@ function menu_fetch($name,$uid,$observer_xchan) { $x = q("select * from menu_item where mitem_menu_id = %d and mitem_channel_id = %d $sql_options order by mitem_order asc, mitem_desc asc", - intval($x[0]['menu_id']), + intval($r[0]['menu_id']), intval($uid) ); - - $result = array('menu' => $r[0], 'items' => $x ); - - + return array('menu' => $r[0], 'items' => $x ); } + return null; } |