aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xboot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index c27fd1632..49295ce82 100755
--- a/boot.php
+++ b/boot.php
@@ -1656,7 +1656,7 @@ function goaway($s) {
function shutdown() {
global $db;
- if($db)
+ if(is_object($db) && $db->connected)
$db->close();
}