This commit is contained in:
Roman Kelesidis 2023-10-20 14:33:53 +07:00
parent b1947e0a1d
commit 09936244da
2 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,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']}");
error_exit("Could not set charset '{$this->cfg['charset']}'");
}
}

View File

@ -73,7 +73,7 @@ class sql_db
{
if (!$this->sql_query("SET NAMES {$this->cfg['charset']}"))
{
$charset_error = "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());
@ -128,7 +128,7 @@ class sql_db
if (!@mysql_select_db($this->cfg['dbname'], $this->link))
{
$db_name = (DBG_USER) ? $this->cfg['dbname'] : '';
$db_name = (DBG_USER) ? "'" . $this->cfg['dbname'] . "'" : '';
$select_error = "Could not select database $db_name";
if (DBG_LOG)
{