From a0dd03ea0e69fa68f7ba856e2e3ee63a5c1abf49 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 15 May 2016 17:56:13 -0700 Subject: [PATCH] be specific --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }