diff --git a/boot.php b/boot.php index 86e61c6bc..7d359d011 100755 --- a/boot.php +++ b/boot.php @@ -1669,7 +1669,8 @@ function goaway($s) { function shutdown() { global $db; - $db->close(); + if($db) + $db->close(); } /**