aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-11 20:24:06 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-11 20:24:06 -0700
commit89fa36ce2a0437b5a819658386bbeccc68701c6e (patch)
treea2df825d6466cae0de43e8f3d73002c277c6982d /include
parent80df97e73418e910ecc583200bf2a0207e25ffe7 (diff)
downloadvolse-hubzilla-89fa36ce2a0437b5a819658386bbeccc68701c6e.tar.gz
volse-hubzilla-89fa36ce2a0437b5a819658386bbeccc68701c6e.tar.bz2
volse-hubzilla-89fa36ce2a0437b5a819658386bbeccc68701c6e.zip
wrong cid
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 0bed5ceb3..25c814ba9 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -1003,8 +1003,9 @@ 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_channel = uid where xchan_pubforum = 1 and uid = %d $perms_sql group by owner_xchan order by xchan_name $limit ",
- intval(local_channel())
+ $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 ",
+ intval(local_channel()),
+ intval(local_channel()),
);
if($r) {
$o .= '<div class="widget">';