From 2e85bf5ee828030c6b24006f0ef0810d7d5eeb71 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 2 Nov 2017 18:42:41 +0900 Subject: [PATCH] Bug fix in DB IO for wrong db debug check Some debug print checks were done wrong --- www/libs/Class.DB.IO.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/libs/Class.DB.IO.inc b/www/libs/Class.DB.IO.inc index b7383048..5b6a398c 100644 --- a/www/libs/Class.DB.IO.inc +++ b/www/libs/Class.DB.IO.inc @@ -714,7 +714,7 @@ if (!$this->cursor || $this->db_functions->_db_last_error_query()) { // printout Query if debug is turned on - if (!$this->db_debug) + if ($this->db_debug) $this->_db_debug('db', $this->query, 'db_exec', 'Q[nc]'); // internal error handling $this->error_id = 13; @@ -1015,7 +1015,7 @@ // if still no cursor ... if (!$this->cursor_ext[$md5]['cursor']) { - if (!$this->db_debug) + if ($this->db_debug) $this->_db_debug('db', $this->cursor_ext[$md5]['query'], 'db_return', 'Q'); // internal error handling $this->error_id = 13;