QueryID not cleared when calling close()

The following procedure causes an issue:
1) Create a new DB_MYSQL instance
2) Make a call to query()
3) Make a call to close()
4) Make another call to query()

Line 219 still sees a QueryID as existing so when it calls warnings(), Line 401 causes an error because LinkID is false and mysqli_warning_count is not expecting a boolean parameter.
This commit is contained in:
312c 2014-10-24 12:40:20 -04:00
parent 80092b4fb9
commit da24681121

View File

@ -291,6 +291,7 @@ function close() {
$this->halt('Cannot close connection or connection did not open.');
}
$this->LinkID = false;
$this->QueryID = false;
}
}