diff options
author | friendica <info@friendica.com> | 2015-01-15 20:56:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-15 20:56:55 -0800 |
commit | ec4d3a2349f9e5c93272b7c7e935cb8089c27b8f (patch) | |
tree | 1ab262bcf7d6f7674bc59824bb3b3ab7100debe0 /mod | |
parent | 43254029ad376169f20d66711db25e2167f4d062 (diff) | |
download | volse-hubzilla-ec4d3a2349f9e5c93272b7c7e935cb8089c27b8f.tar.gz volse-hubzilla-ec4d3a2349f9e5c93272b7c7e935cb8089c27b8f.tar.bz2 volse-hubzilla-ec4d3a2349f9e5c93272b7c7e935cb8089c27b8f.zip |
fix to poco chatrooms
Diffstat (limited to 'mod')
-rw-r--r-- | mod/poco.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/poco.php b/mod/poco.php index 814c3cfd0..152f5a143 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -76,7 +76,7 @@ function poco_init(&$a) { $sql_extra ", intval($channel_id) ); - $c = q("select * from menu_item where ( mitem_flags & " . intval(MENU_ITEM_CHATROOM) . " )>0 and allow_cid = '' and allow_gid = '' and deny_cid = '' and deny_gid = '' and mitem_channel_id = %d", + $rooms = q("select * from menu_item where ( mitem_flags & " . intval(MENU_ITEM_CHATROOM) . " )>0 and allow_cid = '' and allow_gid = '' and deny_cid = '' and deny_gid = '' and mitem_channel_id = %d", intval($channel_id) ); } @@ -119,10 +119,10 @@ function poco_init(&$a) { $ret['itemsPerPage'] = (string) $itemsPerPage; $ret['totalResults'] = (string) $totalResults; - if($c) { + if($rooms) { $ret['chatrooms'] = array(); - foreach($c as $d) { - $ret['chatrooms'][] = array('url' => $d['mitem_link'], 'desc' => $d['mitem_desc']); + foreach($rooms as $room) { + $ret['chatrooms'][] = array('url' => $room['mitem_link'], 'desc' => $room['mitem_desc']); } } |