From 7981e3ab5161f2c82988a5bb10de01fb0cc20502 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 13 Mar 2018 13:42:25 +0900 Subject: [PATCH] Fix Class DB not init for dbh check on close db handler --- www/libs/Class.DB.IO.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/libs/Class.DB.IO.inc b/www/libs/Class.DB.IO.inc index 65111019..0fe09658 100644 --- a/www/libs/Class.DB.IO.inc +++ b/www/libs/Class.DB.IO.inc @@ -433,7 +433,7 @@ // only used by the deconstructor private function _close_db() { - if ($this->dbh) + if (isset($this->dbh) && $this->dbh) { $this->db_functions->_db_close(); unset($this->dbh);