be a bit more precise

This commit is contained in:
redmatrix 2016-05-15 17:54:25 -07:00
parent e8ad16cf2a
commit 894114bfbd

View file

@ -1669,7 +1669,7 @@ function goaway($s) {
function shutdown() {
global $db;
if($db)
if(is_object($db) && $db->connected)
$db->close();
}