Skip to content

Commit e0153d7

Browse files
committed
Merge pull request #323 from avbdr/master
Close connection on __destruct
2 parents 5497e0d + 90ab25d commit e0153d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ protected function _prepareQuery()
12381238
*/
12391239
public function __destruct()
12401240
{
1241-
if (!$this->isSubQuery)
1241+
if ($this->isSubQuery)
12421242
return;
12431243
if ($this->_mysqli)
12441244
$this->_mysqli->close();

0 commit comments

Comments
 (0)