Skip to content

A free, self-hostable news aggregator…

Fix commitNewEntries query (#3357)

Craig Andrewsf9687ea18a39
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index 67ba84e75..28a9b8bde 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -158,7 +158,7 @@ SELECT @rank:=@rank+1 AS id, guid, title, author, content_bin, link, date, `last
FROM `_entrytmp`
ORDER BY date;
-DELETE FROM `_entrytmp` WHERE id <= @rank;';
+DELETE FROM `_entrytmp` WHERE id <= @rank;
SQL;
$hadTransaction = $this->pdo->inTransaction();
if (!$hadTransaction) {