Merge pull request #1484 from annando/1504-bugfix-sql-warning

Bugfix: Avoid SQL warnings because of empty id list
This commit is contained in:
Tobias Diekershoff 2015-04-06 12:56:03 +02:00
commit 81901f39e5

View file

@ -1186,6 +1186,7 @@
$idlist = implode(",", $idarray); $idlist = implode(",", $idarray);
if ($idlist != "")
$r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist); $r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist);