X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FUpdate.php;h=7b2624cb9c638ae67eda5cd7c73c0c1cc840d8ab;hb=1cab44827f384efce7c48644a2e9a75887bdba38;hp=252ea8ef31d5f190c534ed53cbffeec0fc075842;hpb=d577ab98eb0f28f9f807795f54c87d80ef9c0dc2;p=friendica.git diff --git a/src/Core/Update.php b/src/Core/Update.php index 252ea8ef31..7b2624cb9c 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -18,6 +18,10 @@ class Update */ public static function check($via_worker) { + if (!DBA::connected()) { + return; + } + $build = Config::get('system', 'build'); if (empty($build)) { @@ -118,6 +122,8 @@ class Update Lock::release('dbupdate'); } } + } elseif ($force) { + DBStructure::update($verbose, true); } return '';