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')) {