this will fix the cards query and keep the rest intact

This commit is contained in:
Mario Vavti
2018-02-04 22:37:30 +01:00
parent f9aecf5d4c
commit 9d55a254dc
5 changed files with 19 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ class Forums {
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 ",
where uid = %d and owner_xchan = '%s' and item_unseen = 1 $perms_sql ",
dbesc($r1[$x]['xchan_hash']),
intval(local_channel())
);