aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/index.php')
-rwxr-xr-xphpBB/install/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index ee8ec90fdf..4236725308 100755
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -344,7 +344,7 @@ class module
$template->display('body');
// Close our DB connection.
- if (isset($db))
+ if (!empty($db) && is_object($db))
{
$db->sql_close();
}
@@ -533,7 +533,7 @@ class module
echo '</body>';
echo '</html>';
- if (isset($db))
+ if (!empty($db) && is_object($db))
{
$db->sql_close();
}