1
0
Fork 0

Avoid SQL warnings because of empty id list.

This commit is contained in:
Michael Vogel 2015-04-06 10:12:37 +02:00
parent fa948df062
commit 739219278b

View file

@ -1186,7 +1186,8 @@
$idlist = implode(",", $idarray);
$r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist);
if ($idlist != "")
$r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist);
$data = array('$statuses' => $ret);