Browse Source

Additional check if the database object is initialized

tags/3.5.4
Michael 2 years ago
parent
commit
dbcd1d1ae3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/dba.php

+ 3
- 0
include/dba.php View 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!');
}
}
}



Loading…
Cancel
Save