X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FUpdate.php;h=2718d03d0c3318d69e33e0fd84b28e2ac325cf09;hb=34521c228bd69609fa4f475bb2e2e826723fcc16;hp=0f0484b4e7efb1764d03a54c5d81f46cdcfc9c0a;hpb=aeb3c7e96cb80ae138277245285924e7f2eeedd1;p=friendica.git diff --git a/src/Core/Update.php b/src/Core/Update.php index 0f0484b4e7..2718d03d0c 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -132,19 +132,13 @@ class Update $build = DI::config()->get('system', 'build'); if (empty($build)) { - // legacy option - check if the Config table exists - if (DBStructure::existsTable('config')) { - $dbConfig = DBA::selectFirst('config', ['v'], ['cat' => 'system', 'k' => 'build']); - if (!empty($dbConfig)) { - $build = $dbConfig['v']; - } + $dbConfig = DBA::selectFirst('config', ['v'], ['cat' => 'system', 'k' => 'build']); + if (!empty($dbConfig)) { + $build = $dbConfig['v']; } if (empty($build) || ($build > DB_UPDATE_VERSION)) { - // legacy option - check if the Config table exists - if (DBStructure::existsTable('config')) { - DI::config()->set('system', 'build', DB_UPDATE_VERSION - 1); - } + DI::config()->set('system', 'build', DB_UPDATE_VERSION - 1); $build = DB_UPDATE_VERSION - 1; } }