瀏覽代碼

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 年之前
父節點
當前提交
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) {