aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse_bs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-01 12:33:45 +0000
committerMario <mario@mariovavti.com>2020-11-01 12:33:45 +0000
commitaa69b43e0ecc8ff8a0e231e4edeaa32a65a458cf (patch)
treebd6e12ab2878613610b76751f0c781ee78d368ac /Zotlabs/Module/Sse_bs.php
parent205279f7f877c10abf80715c55db83d2c2852eab (diff)
downloadvolse-hubzilla-aa69b43e0ecc8ff8a0e231e4edeaa32a65a458cf.tar.gz
volse-hubzilla-aa69b43e0ecc8ff8a0e231e4edeaa32a65a458cf.tar.bz2
volse-hubzilla-aa69b43e0ecc8ff8a0e231e4edeaa32a65a458cf.zip
fix vsprintf() warning
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
);
}