aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Forums.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-24 17:09:51 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-24 17:11:29 +0200
commit4bb93c4327a55a1700b5a8fd07cd587cc4ae8ad6 (patch)
tree3b5254caa8e163cc63a66f025ed7b2873cbda679 /Zotlabs/Widget/Forums.php
parent2dce7c212fe02f54a62143b31d01b39869d9b948 (diff)
downloadvolse-hubzilla-4bb93c4327a55a1700b5a8fd07cd587cc4ae8ad6.tar.gz
volse-hubzilla-4bb93c4327a55a1700b5a8fd07cd587cc4ae8ad6.tar.bz2
volse-hubzilla-4bb93c4327a55a1700b5a8fd07cd587cc4ae8ad6.zip
fix regression with forum widget unseen count
Diffstat (limited to 'Zotlabs/Widget/Forums.php')
-rw-r--r--Zotlabs/Widget/Forums.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php
index f65a639ff..7415c0f0a 100644
--- a/Zotlabs/Widget/Forums.php
+++ b/Zotlabs/Widget/Forums.php
@@ -66,8 +66,8 @@ class Forums {
for($x = 0; $x < count($r1); $x ++) {
$r = q("select sum(item_unseen) as unseen from item
where uid = %d and owner_xchan = '%s' and item_unseen = 1 $perms_sql ",
- dbesc($r1[$x]['xchan_hash']),
- intval(local_channel())
+ intval(local_channel()),
+ dbesc($r1[$x]['xchan_hash'])
);
if($r)
$r1[$x]['unseen'] = $r[0]['unseen'];