diff --git a/boot.php b/boot.php index 6b49e795c..27bf921ce 100755 --- a/boot.php +++ b/boot.php @@ -1656,7 +1656,8 @@ function goaway($s) { function shutdown() { global $db; - $db->close(); + if($db) + $db->close(); } /**