From 0442d7584e8497547c02a38c48facc1deae70a9e Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 3 Sep 2023 11:29:32 +0700 Subject: [PATCH] Revert "Updated" This reverts commit 905b6797f8ad98a65fe8b01f4ad638e3cc1fa64a. --- bt/includes/init_tr.php | 6 +++--- library/config.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index ab998950..9be87be3 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -128,7 +128,7 @@ class sql_db $connect_type = ($this->cfg['persist']) ? 'mysql_pconnect' : 'mysql_connect'; - if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd'])) + if (!$link = $connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd'])) { $this->log_error(); } @@ -163,7 +163,7 @@ class sql_db $this->cur_query = 'select db'; $this->debug('start'); - if (!@mysql_select_db($this->cfg['dbname'], $this->link)) + if (!mysql_select_db($this->cfg['dbname'], $this->link)) { $this->log_error(); error_exit("Could not select database '{$this->cfg['dbname']}'"); @@ -486,4 +486,4 @@ class sql_db $msg[] = ''; bb_log($msg, 'sql_error_tr'); } -} +} \ No newline at end of file diff --git a/library/config.php b/library/config.php index 632f356c..0e676d2f 100644 --- a/library/config.php +++ b/library/config.php @@ -357,7 +357,7 @@ ini_set('error_log', LOG_DIR .'php_err.log'); // имя лог файла // Check some variable // Magic quotes -if (@get_magic_quotes_gpc()) die('Set magic_quotes off'); +if (get_magic_quotes_gpc()) die('Set magic_quotes off'); // JSON if (!function_exists('json_encode')) die('Json_encode not installed'); // Mbstring