From e0cc121c7a556126b6c4968cb9efac47ee1382b5 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 12 May 2024 17:10:43 +0200 Subject: Fix SQLite imports produced before FreshRSS 1.20.0 (#6450) fix https://github.com/FreshRSS/FreshRSS/issues/6088 --- app/Models/DatabaseDAO.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Models/DatabaseDAO.php') diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index 667cb61a2..ec5500d3e 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -299,6 +299,7 @@ SQL; try { $sqlite = new Minz_PdoSqlite('sqlite:' . $filename); + $sqlite->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); } catch (Exception $e) { $error = 'Error while initialising SQLite copy: ' . $e->getMessage(); return self::stdError($error); -- cgit v1.2.3