1
1
Fork 0

Merge pull request #6228 from MrPetovan/bug/5911-undefined-constant-DB_UPDATE_VERSION

Add DB connection status check in Update::check
This commit is contained in:
Michael Vogel 2018-12-03 07:20:51 +01:00 committed by GitHub
commit be0d70f9ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,10 @@ class Update
*/ */
public static function check($via_worker) public static function check($via_worker)
{ {
if (!DBA::connected()) {
return;
}
$build = Config::get('system', 'build'); $build = Config::get('system', 'build');
if (empty($build)) { if (empty($build)) {