Additional check if the database object is initialized
This commit is contained in:
@@ -126,6 +126,9 @@ class dba {
|
|||||||
if (!is_object(self::$dbo)) {
|
if (!is_object(self::$dbo)) {
|
||||||
global $db;
|
global $db;
|
||||||
self::$dbo = $db;
|
self::$dbo = $db;
|
||||||
|
if (!is_object(self::$dbo)) {
|
||||||
|
die('Database is uninitialized!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user