Explorar o código

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 hai 1 ano
pai
achega
51f93e56f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {