From 51f93e56f7ffc8fbae825124fe740ab623519e0c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 11 Aug 2024 22:09:14 +0200 Subject: SQL single quote string literals, one more (#6702) Forgotten from https://github.com/FreshRSS/FreshRSS/pull/6701 https://github.com/FreshRSS/FreshRSS/issues/6602 --- app/Models/DatabaseDAOSQLite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/DatabaseDAOSQLite.php') diff --git a/app/Models/DatabaseDAOSQLite.php b/app/Models/DatabaseDAOSQLite.php index 3e15578e8..9380df094 100644 --- a/app/Models/DatabaseDAOSQLite.php +++ b/app/Models/DatabaseDAOSQLite.php @@ -8,7 +8,7 @@ class FreshRSS_DatabaseDAOSQLite extends FreshRSS_DatabaseDAO { #[\Override] public function tablesAreCorrect(): bool { - $sql = 'SELECT name FROM sqlite_master WHERE type="table"'; + $sql = "SELECT name FROM sqlite_master WHERE type='table'"; $stm = $this->pdo->query($sql); $res = $stm ? $stm->fetchAll(PDO::FETCH_ASSOC) : false; if ($res === false) { -- cgit v1.2.3