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 7d359d011..72e86e42b 100755
--- a/boot.php
+++ b/boot.php
@@ -1669,7 +1669,7 @@ function goaway($s) {
function shutdown() {
global $db;
- if($db)
+ if(is_object($db) && $db->connected)
$db->close();
}