Fix Class DB not init for dbh check on close db handler

This commit is contained in:
Clemens Schwaighofer
2018-03-13 13:42:25 +09:00
parent 21b9b99197
commit 7981e3ab51

View File

@@ -433,7 +433,7 @@
// only used by the deconstructor // only used by the deconstructor
private function _close_db() private function _close_db()
{ {
if ($this->dbh) if (isset($this->dbh) && $this->dbh)
{ {
$this->db_functions->_db_close(); $this->db_functions->_db_close();
unset($this->dbh); unset($this->dbh);