aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse_bs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-01 12:24:55 +0000
committerMario <mario@mariovavti.com>2020-11-01 12:24:55 +0000
commitcadd6fdfff130a6d3d83f94ae2b1ec4a49416f47 (patch)
tree75007b0b1e4034a0e7036b28605dd6f4d4250509 /Zotlabs/Module/Sse_bs.php
parent85b97014c9befee4cb3a290e1ef26797d8ec020a (diff)
downloadvolse-hubzilla-cadd6fdfff130a6d3d83f94ae2b1ec4a49416f47.tar.gz
volse-hubzilla-cadd6fdfff130a6d3d83f94ae2b1ec4a49416f47.tar.bz2
volse-hubzilla-cadd6fdfff130a6d3d83f94ae2b1ec4a49416f47.zip
fix vsprintf() error
Diffstat (limited to 'Zotlabs/Module/Sse_bs.php')
-rw-r--r--Zotlabs/Module/Sse_bs.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index e3439e7dd..287c24829 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -129,8 +129,9 @@ class Sse_bs extends Controller {
call_hooks('update_unseen',$x);
if($x['update'] === 'unset' || intval($x['update'])) {
- q("UPDATE item SET item_unseen = 0 WHERE uid = %d AND mid in (". $str . ") AND item_unseen = 1",
- intval(self::$uid)
+ q("UPDATE item SET item_unseen = 0 WHERE uid = %d AND mid in (%s) AND item_unseen = 1",
+ intval(self::$uid),
+ $str // this is dbesc() in the above foreach loop
);
}