From 894114bfbdb31f9678837c7e1a234638afba3ca5 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 15 May 2016 17:54:25 -0700 Subject: be a bit more precise --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') 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(); } -- cgit v1.2.3