aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-15 17:54:25 -0700
committerredmatrix <git@macgirvin.com>2016-05-15 17:54:25 -0700
commit894114bfbdb31f9678837c7e1a234638afba3ca5 (patch)
tree14d75331cdc54e70045144782b9982f2acf7ff57
parente8ad16cf2a9121c4d0474fb3195e46342b1e2628 (diff)
downloadvolse-hubzilla-894114bfbdb31f9678837c7e1a234638afba3ca5.tar.gz
volse-hubzilla-894114bfbdb31f9678837c7e1a234638afba3ca5.tar.bz2
volse-hubzilla-894114bfbdb31f9678837c7e1a234638afba3ca5.zip
be a bit more precise
-rwxr-xr-xboot.php2
1 files changed, 1 insertions, 1 deletions
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();
}