]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5407: Workers didn't start anymore (#5409)
authorMichael Vogel <icarus@dabo.de>
Thu, 19 Jul 2018 15:05:17 +0000 (17:05 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Thu, 19 Jul 2018 15:05:17 +0000 (11:05 -0400)
include/dba.php

index 0b5c822531eb9f32fb681cf71cd46613c5b9fcde..954c3a7cbb4468491d47906f3994f0894c2d7da1 100644 (file)
@@ -247,6 +247,10 @@ class dba {
        public static function connected() {
                $connected = false;
 
+               if (is_null(self::$db)) {
+                       return false;
+               }
+
                switch (self::$driver) {
                        case 'pdo':
                                $r = dba::p("SELECT 1");