This commit is contained in:
Roman Kelesidis 2023-08-28 01:18:00 +07:00
parent f888893a03
commit 905b6797f8
2 changed files with 4 additions and 4 deletions

View File

@ -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');
}
}
}

View File

@ -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