summaryrefslogtreecommitdiff
path: root/classes/Db_Migrations.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Db_Migrations.php')
-rw-r--r--classes/Db_Migrations.php2
1 files changed, 1 insertions, 1 deletions
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 (?)");