]> git.mxchange.org Git - friendica.git/commitdiff
Additional check if the database object is initialized
authorMichael <heluecht@pirati.ca>
Tue, 10 Oct 2017 22:25:38 +0000 (22:25 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 10 Oct 2017 22:25:38 +0000 (22:25 +0000)
include/dba.php

index 99f5cd64a2265149f72251f6ba0d43d28007c9df..73246d4908530e8c3366a7529776ab8e370497bd 100644 (file)
@@ -126,6 +126,9 @@ class dba {
                if (!is_object(self::$dbo)) {
                        global $db;
                        self::$dbo = $db;
+                       if (!is_object(self::$dbo)) {
+                               die('Database is uninitialized!');
+                       }
                }
        }