summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/update.php b/update.php
index bcb6d6d12..aab84bfdb 100755
--- a/update.php
+++ b/update.php
@@ -145,9 +145,7 @@
}
if (!isset($options['update-schema'])) {
- $schema_version = get_schema_version();
-
- if ($schema_version != SCHEMA_VERSION) {
+ if (get_schema_version() != SCHEMA_VERSION) {
die("Schema version is wrong, please upgrade the database (--update-schema).\n");
}
}