aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/dbal.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/dbal.php')
-rw-r--r--phpBB/includes/db/dbal.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index e55a565ea4..6bec685061 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -138,7 +138,13 @@ class dbal
$this->sql_freeresult($query_id);
}
- return $this->_sql_close();
+ // Connection closed correctly. Set db_connect_id to false to prevent errors
+ if (($result = $this->_sql_close()))
+ {
+ $this->db_connect_id = false;
+ }
+
+ return $result;
}
/**