get_int for db_version

This commit is contained in:
Shish 2020-01-30 21:11:56 +00:00
parent 3ee05b21e2
commit 8651cc0d7a

View file

@ -20,7 +20,7 @@ class Upgrade extends Extension
{
global $config, $database;
if (!is_numeric($config->get_string("db_version"))) {
if ($config->get_int("db_version") < 1) {
$this->set_version("db_version", 2);
}