Additional check if the database object is initialized

Este commit está contenido en:
Michael 2017-10-10 22:25:38 +00:00
padre 63e02eb57f
commit dbcd1d1ae3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados

Ver fichero

@ -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!');
}
}
}