From 8727fb3ba8a28da48c71bdd39166b9aeb3c3d986 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 8 Jan 2024 22:46:13 +0000 Subject: Clean up some unused variables. This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm. --- classes/Db_Migrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Db_Migrations.php') diff --git a/classes/Db_Migrations.php b/classes/Db_Migrations.php index d63736987..c2a8c326d 100644 --- a/classes/Db_Migrations.php +++ b/classes/Db_Migrations.php @@ -35,7 +35,7 @@ class Db_Migrations { $sth = $this->pdo->query("SELECT * FROM {$this->migrations_table}"); - if ($res = $sth->fetch()) { + if ($sth->fetch()) { $sth = $this->pdo->prepare("UPDATE {$this->migrations_table} SET schema_version = ?"); } else { $sth = $this->pdo->prepare("INSERT INTO {$this->migrations_table} (schema_version) VALUES (?)"); -- cgit v1.2.3