From c3aa57fb86c1f85b39340c32fd856b3ba8236df8 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 19 Oct 2023 22:34:34 +0700 Subject: [PATCH] Update init_tr.php --- bt/includes/init_tr.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index 7f77192b..eb6c5dd9 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -42,7 +42,7 @@ function silent_exit () function error_exit ($msg = '') { - if (DBG_LOG_TRACKER) dbg_log(' ', '!err-'. clean_filename($msg)); + if (DBG_LOG_TRACKER) dbg_log($msg, '!err-' . $msg . time()); silent_exit(); @@ -111,6 +111,7 @@ class sql_db { if (!$this->sql_query("SET NAMES {$this->cfg['charset']}")) { + $this->log_error(); error_exit("Could not set charset {$this->cfg['charset']}"); } }