aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-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();
}