aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-15 17:56:13 -0700
committerredmatrix <git@macgirvin.com>2016-05-15 17:56:13 -0700
commita0dd03ea0e69fa68f7ba856e2e3ee63a5c1abf49 (patch)
tree274cd17cabad5cfb58705e0615b1bf43d62f4af8 /boot.php
parent90353d90dcba24fd6cc137373616a9446076dd23 (diff)
downloadvolse-hubzilla-a0dd03ea0e69fa68f7ba856e2e3ee63a5c1abf49.tar.gz
volse-hubzilla-a0dd03ea0e69fa68f7ba856e2e3ee63a5c1abf49.tar.bz2
volse-hubzilla-a0dd03ea0e69fa68f7ba856e2e3ee63a5c1abf49.zip
be specific
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php2
1 files changed, 1 insertions, 1 deletions
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();
}