diff --git a/include/dba.php b/include/dba.php index 0b5c82253..954c3a7cb 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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");