diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/db/dbal.php | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index b88873df46..af5dfa059b 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -147,7 +147,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;  	}  	/** | 
