From fbbb5a5e204755a3835383316fdd87ecdfd98d2b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 17 Oct 2025 09:33:04 +0200 Subject: [PATCH] Fix API list by IDs (#8130) fix https://github.com/FreshRSS/FreshRSS/issues/8129 Regression from https://github.com/FreshRSS/FreshRSS/pull/7886 --- app/Models/EntryDAO.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 0d34df3ac..6f60fb13f 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1576,13 +1576,15 @@ SQL; $hash = static::sqlHexEncode('hash'); $repeats = str_repeat('?,', count($ids) - 1) . '?'; $sql = <<pdo->prepare($sql); if ($stm === false || !$stm->execute($ids)) { + $info = $stm === false ? $this->pdo->errorInfo() : $stm->errorInfo(); + Minz_Log::error('SQL error ' . __METHOD__ . json_encode($info)); return; } while (is_array($row = $stm->fetch(PDO::FETCH_ASSOC))) {