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(); }