Update init_tr.php

This commit is contained in:
Roman Kelesidis 2023-11-28 22:55:11 +07:00
parent 2111734d7c
commit e74b4db121

View File

@ -131,10 +131,7 @@ class sql_db
if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
{
$this->log_error();
if (DBG_LOG_TRACKER)
{
dbg_log("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . TIMENOW);
}
error_exit("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'");
}
register_shutdown_function(array(&$this, 'close'));