Commit 90ab25df authored by Alexander Butenko's avatar Alexander Butenko

Close connection on __destruct

parent a6d5f132
...@@ -1237,7 +1237,7 @@ class MysqliDb ...@@ -1237,7 +1237,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