mirror of
https://github.com/friendica/friendica
synced 2024-11-13 04:22:54 +00:00
Add DB connection status check in Update::check
This commit is contained in:
parent
3a9db3f637
commit
f7c9ed5108
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue