Update init_tr.php

This commit is contained in:
Roman Kelesidis 2023-10-19 22:34:34 +07:00
parent 803d5a1818
commit c3aa57fb86

View File

@ -42,7 +42,7 @@ function silent_exit ()
function error_exit ($msg = '') 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(); silent_exit();
@ -111,6 +111,7 @@ class sql_db
{ {
if (!$this->sql_query("SET NAMES {$this->cfg['charset']}")) if (!$this->sql_query("SET NAMES {$this->cfg['charset']}"))
{ {
$this->log_error();
error_exit("Could not set charset {$this->cfg['charset']}"); error_exit("Could not set charset {$this->cfg['charset']}");
} }
} }