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

Close connection on __destruct

parent a6d5f132
......@@ -1237,7 +1237,7 @@ class MysqliDb
*/
public function __destruct()
{
if (!$this->isSubQuery)
if ($this->isSubQuery)
return;
if ($this->_mysqli)
$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