aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Forums.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-04 15:53:56 -0800
committerzotlabs <mike@macgirvin.com>2018-02-04 15:53:56 -0800
commit6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f (patch)
treec4848db3163817af1ba059ad23070028bcc56b41 /Zotlabs/Widget/Forums.php
parent3e7dffb6765f1d3120fd8fb58bb38c70c9dddcd6 (diff)
parent9d55a254dcd39e2a77a1c24625adba69d16acb7a (diff)
downloadvolse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.tar.gz
volse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.tar.bz2
volse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'Zotlabs/Widget/Forums.php')
-rw-r--r--Zotlabs/Widget/Forums.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php
index 44d95012f..f65a639ff 100644
--- a/Zotlabs/Widget/Forums.php
+++ b/Zotlabs/Widget/Forums.php
@@ -64,7 +64,8 @@ class Forums {
// There also should be a way to update this via ajax.
for($x = 0; $x < count($r1); $x ++) {
- $r = q("select sum(item_unseen) as unseen from item where owner_xchan = '%s' and uid = %d and item_unseen = 1 $perms_sql ",
+ $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())
);