Commit e0153d7f authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #323 from avbdr/master

Close connection on __destruct
parents 5497e0da 90ab25df
...@@ -1238,7 +1238,7 @@ class MysqliDb ...@@ -1238,7 +1238,7 @@ class MysqliDb
*/ */
public function __destruct() public function __destruct()
{ {
if (!$this->isSubQuery) if ($this->isSubQuery)
return; return;
if ($this->_mysqli) if ($this->_mysqli)
$this->_mysqli->close(); $this->_mysqli->close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment