From 1748d342d3af257361115709674b8f0d71a58991 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 19 Oct 2023 22:28:28 +0700 Subject: [PATCH] Update init_tr.php --- bt/includes/init_tr.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index bca3dfbf..9e89ff84 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -111,7 +111,12 @@ class sql_db { if (!$this->sql_query("SET NAMES {$this->cfg['charset']}")) { - error_exit("Could not set charset {$this->cfg['charset']}"); + $charset_error = "Could not set charset {$this->cfg['charset']}"; + if (DBG_LOG) + { + dbg_log($charset_error, "{$this->cfg['charset']}-DB-charset-FAIL_" . time()); + } + error_exit($charset_error); } }