Skip to content

Commit 90ab25d

Browse files
committed
Close connection on __destruct
1 parent a6d5f13 commit 90ab25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ protected function _prepareQuery()
12371237
*/
12381238
public function __destruct()
12391239
{
1240-
if (!$this->isSubQuery)
1240+
if ($this->isSubQuery)
12411241
return;
12421242
if ($this->_mysqli)
12431243
$this->_mysqli->close();

0 commit comments

Comments
 (0)