diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-24 17:09:51 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-24 17:09:51 +0200 |
commit | e11e99b2d1e2d94417e9f9934b759c88a70177ac (patch) | |
tree | c5a6d66e1fa86ec293986d5b08719bd2081f1213 /Zotlabs/Widget/Forums.php | |
parent | 2ea87b65ca4aeab08e68a4e5cd1fd940ae470146 (diff) | |
download | volse-hubzilla-e11e99b2d1e2d94417e9f9934b759c88a70177ac.tar.gz volse-hubzilla-e11e99b2d1e2d94417e9f9934b759c88a70177ac.tar.bz2 volse-hubzilla-e11e99b2d1e2d94417e9f9934b759c88a70177ac.zip |
fix regression with forum widget unseen count
Diffstat (limited to 'Zotlabs/Widget/Forums.php')
-rw-r--r-- | Zotlabs/Widget/Forums.php | 4 |
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']; |