Browse Source

API: small fix

Andrew Dolgov 6 years ago
parent
commit
9652fa6b66
1 changed files with 2 additions and 1 deletions
  1. 2 1
      classes/api.php

+ 2 - 1
classes/api.php

@@ -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"]);