aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xboot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 6b49e795c..27bf921ce 100755
--- a/boot.php
+++ b/boot.php
@@ -1656,7 +1656,8 @@ function goaway($s) {
function shutdown() {
global $db;
- $db->close();
+ if($db)
+ $db->close();
}
/**