aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 86e61c6bc..7d359d011 100755
--- a/boot.php
+++ b/boot.php
@@ -1669,7 +1669,8 @@ function goaway($s) {
function shutdown() {
global $db;
- $db->close();
+ if($db)
+ $db->close();
}
/**