From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Mon, 3 Dec 2018 01:57:41 +0000 (-0500)
Subject: Add DB connection status check in Update::check
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7c9ed5108ddfc3e6e253a236b3a6b4abfa73d6b;p=friendica.git

Add DB connection status check in Update::check
---

diff --git a/src/Core/Update.php b/src/Core/Update.php
index f4d8b8f9a7..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)) {