Revert "fixes"

This reverts commit b295633136.
This commit is contained in:
Hani Rouatbi
2023-09-02 11:59:20 +01:00
parent 3a80025218
commit 795fcbfc1e
2 changed files with 4 additions and 4 deletions

View File

@@ -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 ' <span style="color:blue">' . substr($m[1], 0, 1) . '</span> ';
}, $error_sql);