aboutsummaryrefslogtreecommitdiff
path: root/app/Models/DatabaseDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-05-12 17:10:43 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-12 17:10:43 +0200
commite0cc121c7a556126b6c4968cb9efac47ee1382b5 (patch)
treeecaa7902b64ea9788c450079b5777475dfd4ea33 /app/Models/DatabaseDAO.php
parent0940025980f66ed5bcf55443d573e5dc89f7bcaa (diff)
Fix SQLite imports produced before FreshRSS 1.20.0 (#6450)
fix https://github.com/FreshRSS/FreshRSS/issues/6088
Diffstat (limited to 'app/Models/DatabaseDAO.php')
-rw-r--r--app/Models/DatabaseDAO.php1
1 files changed, 1 insertions, 0 deletions
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);