diff --git a/src/pages/update.php b/src/pages/update.php index 59ba583a..7c5aa7c1 100644 --- a/src/pages/update.php +++ b/src/pages/update.php @@ -31,7 +31,7 @@ if ('POST' === $_SERVER['REQUEST_METHOD']) { } foreach ($versions as $version) { - if (-1 === version_compare($options->getOption('version'), $version['version'])) { + if (-1 === version_compare($options->version, $version['version'])) { $sql = file_get_contents($version['filepath']); if ($sql) {