]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/installer.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / installer.php
index 9e2936ca82dc5860c10e00827197787fef4c24ac..6b0278ee0b81b8dc83b97795dec26ea1d7c578b4 100644 (file)
@@ -293,7 +293,10 @@ abstract class Installer
             }
         }
 
-        if (!$conn instanceof DB_common) {
+        if (!is_object($conn)) {
+            // No object at all
+            throw new Exception('Fatal error: conn is no object.');
+        } elseif (!$conn instanceof DB_common) {
             // Is not the right instance
             throw new Exception('Cannot connect to database: ' . $conn->getMessage());
         }