Skip to content

Commit

Permalink
Add __destruct method to query-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Feb 2, 2017
1 parent 88b530d commit 00f81e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/classes/db/mysql/query_factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ function close() {
unset($this->link);
}

function __destruct() {
$this->close();
}

function set_error($zp_err_num, $zp_err_text, $dieOnErrors = true) {
$this->error_number = $zp_err_num;
$this->error_text = $zp_err_text;
Expand Down

0 comments on commit 00f81e5

Please sign in to comment.