]> git.wh0rd.org Git - tt-rss.git/commitdiff
API: small fix
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Dec 2017 19:49:12 +0000 (22:49 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Dec 2017 19:49:12 +0000 (22:49 +0300)
classes/api.php

index a4cfcff501c7bf2dc8bc3e0d34bde45490f03374..ad0372dbf4d294223f04c04c0e34a6fedd5cc9f5 100644 (file)
@@ -298,7 +298,8 @@ class API extends Handler {
 
                        if ($num_updated > 0 && $field == "unread") {
                                $sth = $this->pdo->query("SELECT DISTINCT feed_id FROM ttrss_user_entries
-                                       WHERE ref_id IN ($article_ids)");
+                                       WHERE ref_id IN ($article_qmarks)");
+                               $sth->execute($article_ids);
 
                                while ($line = $sth->fetch()) {
                                        CCache::update($line["feed_id"], $_SESSION["uid"]);