From 795fcbfc1e530a9d16fd3a00b37745df5cebde1b Mon Sep 17 00:00:00 2001 From: Hani Rouatbi Date: Sat, 2 Sep 2023 11:59:20 +0100 Subject: [PATCH] Revert "fixes" This reverts commit b29563313665dda303ff167fc1a79a6c2b938a45. --- includes/mysqli.php | 4 ++-- includes/sqlite.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/mysqli.php b/includes/mysqli.php index fc4abb9..aca9802 100755 --- a/includes/mysqli.php +++ b/includes/mysqli.php @@ -420,10 +420,10 @@ class KleejaDatabase } list($error_no, $error_msg) = $this->get_error(); - $error_sql = $this->query_num ? @current($this->debugr[$this->query_num+1]) : ''; + $error_sql = @current($this->debugr[$this->query_num+1]); //some ppl want hide their table names - if (! defined('DEV_STAGE') && $error_sql != '') { + if (! defined('DEV_STAGE')) { $error_sql = preg_replace_callback("#\s{1,3}`*{$this->dbprefix}([a-z0-9]+)`*\s{1,3}#", function ($m) { return ' ' . substr($m[1], 0, 1) . ' '; }, $error_sql); diff --git a/includes/sqlite.php b/includes/sqlite.php index b943a53..35fa359 100755 --- a/includes/sqlite.php +++ b/includes/sqlite.php @@ -424,10 +424,10 @@ class KleejaDatabase } list($error_no, $error_msg) = $this->get_error(); - $error_sql = $this->query_num ? @current($this->debugr[$this->query_num+1]) : ''; + $error_sql = @current($this->debugr[$this->query_num+1]); //some ppl want hide their table names - if (! defined('DEV_STAGE') && $error_sql != '') { + if (! defined('DEV_STAGE')) { $error_sql = preg_replace_callback("#\s{1,3}`*{$this->dbprefix}([a-z0-9]+)`*\s{1,3}#", function ($m) { return ' ' . substr($m[1], 0, 1) . ' '; }, $error_sql);