From ea1b3ff0dc4767852e124c6ceeeb3d6691e08f02 Mon Sep 17 00:00:00 2001 From: Hani Rouatbi Date: Sat, 2 Sep 2023 12:09:15 +0100 Subject: [PATCH] fixes --- includes/mysqli.php | 2 +- includes/sqlite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/mysqli.php b/includes/mysqli.php index aca9802..a71e8c8 100755 --- a/includes/mysqli.php +++ b/includes/mysqli.php @@ -420,7 +420,7 @@ class KleejaDatabase } list($error_no, $error_msg) = $this->get_error(); - $error_sql = @current($this->debugr[$this->query_num+1]); + $error_sql = $this->connect_id ? @current($this->debugr[$this->query_num+1]) : ''; //some ppl want hide their table names if (! defined('DEV_STAGE')) { diff --git a/includes/sqlite.php b/includes/sqlite.php index 35fa359..dfab856 100755 --- a/includes/sqlite.php +++ b/includes/sqlite.php @@ -424,7 +424,7 @@ class KleejaDatabase } list($error_no, $error_msg) = $this->get_error(); - $error_sql = @current($this->debugr[$this->query_num+1]); + $error_sql = $this->connect_id ? @current($this->debugr[$this->query_num+1]) : ''; //some ppl want hide their table names if (! defined('DEV_STAGE')) {