spegling av https://github.com/friendica/friendica
Additional check if the database object is initialized
This commit is contained in:
förälder
63e02eb57f
incheckning
dbcd1d1ae3
|
@ -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!');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Laddar…
Referens i nytt ärende