Additional check if the database object is initialized
This commit is contained in:
parent
63e02eb57f
commit
dbcd1d1ae3
1 changed files with 3 additions and 0 deletions
|
@ -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!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue