diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-11 20:25:52 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-11 20:25:52 -0700 |
commit | 1932e726030207fd9283e6e6a796b53c5995fea4 (patch) | |
tree | bd1e54acbccafdc3e1b400d80916d70871a5c592 /include/widgets.php | |
parent | be4eb4eeb87b9eb8afd396b4dd16d0dba1765cfe (diff) | |
download | volse-hubzilla-1932e726030207fd9283e6e6a796b53c5995fea4.tar.gz volse-hubzilla-1932e726030207fd9283e6e6a796b53c5995fea4.tar.bz2 volse-hubzilla-1932e726030207fd9283e6e6a796b53c5995fea4.zip |
arghh
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php index 9d4c64b2f..0e56b0e15 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1003,7 +1003,7 @@ function widget_forums($arr) { $perms_sql = item_permissions_sql(local_channel()) . item_normal(); - $r = q("select sum(item_unseen) as unseen, owner_xchan, abook_id, xchan.* from xchan left join item on owner_xchan = xchan_hash left join abook on abook_xchan = xchan_hash where xchan_pubforum = 1 and uid = %d and abook_id = %d $perms_sql group by owner_xchan order by xchan_name $limit ", + $r = q("select sum(item_unseen) as unseen, owner_xchan, abook_id, xchan.* from xchan left join item on owner_xchan = xchan_hash left join abook on abook_xchan = xchan_hash where xchan_pubforum = 1 and uid = %d and abook_channel = %d $perms_sql group by owner_xchan order by xchan_name $limit ", intval(local_channel()), intval(local_channel()) ); |