Avoid SQL warnings because of empty id list.
This commit is contained in:
parent
fa948df062
commit
739219278b
|
@ -1186,6 +1186,7 @@
|
|||
|
||||
$idlist = implode(",", $idarray);
|
||||
|
||||
if ($idlist != "")
|
||||
$r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user