Corrected wrong handling of the return value

This commit is contained in:
Michael 2017-12-22 14:51:50 +00:00
parent 1e7e83510a
commit 2e2a2b8040

View file

@ -673,7 +673,8 @@ function update_db(App $a)
$build = Config::get('system', 'build');
if (empty($build)) {
$build = Config::set('system', 'build', DB_UPDATE_VERSION);
Config::set('system', 'build', DB_UPDATE_VERSION);
$build = DB_UPDATE_VERSION;
}
if ($build != DB_UPDATE_VERSION) {