Просмотр исходного кода

SQL single quote string literals, one more (#6702)

Forgotten from https://github.com/FreshRSS/FreshRSS/pull/6701
https://github.com/FreshRSS/FreshRSS/issues/6602
Alexandre Alapetite 1 год назад
Родитель
Сommit
51f93e56f7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Models/DatabaseDAOSQLite.php

+ 1 - 1
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) {