Merge pull request #1484 from annando/1504-bugfix-sql-warning
Bugfix: Avoid SQL warnings because of empty id list
This commit is contained in:
commit
81901f39e5
1 changed files with 2 additions and 1 deletions
|
@ -1186,7 +1186,8 @@
|
||||||
|
|
||||||
$idlist = implode(",", $idarray);
|
$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);
|
$data = array('$statuses' => $ret);
|
||||||
|
|
Loading…
Reference in a new issue