fixed historical database pandora_enterprise#8791
This commit is contained in:
parent
2343456113
commit
f688f73c46
|
@ -73,7 +73,7 @@ final class Config
|
|||
$config['history_db_user'],
|
||||
io_output_password($config['history_db_pass']),
|
||||
$config['history_db_name'],
|
||||
$config['history_db_port']
|
||||
(int) $config['history_db_port']
|
||||
);
|
||||
|
||||
if ($rc === false) {
|
||||
|
@ -84,7 +84,7 @@ final class Config
|
|||
$config['history_db_name'],
|
||||
$config['history_db_user'],
|
||||
io_output_password($config['history_db_pass']),
|
||||
$config['history_db_port'],
|
||||
(int) $config['history_db_port'],
|
||||
false
|
||||
);
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ final class DBMaintainer
|
|||
$this->user = $params['user'];
|
||||
$this->pass = io_output_password($params['pass']);
|
||||
$this->host = $params['host'];
|
||||
$this->port = $params['port'];
|
||||
$this->port = (int) $params['port'];
|
||||
$this->name = $params['name'];
|
||||
$this->charset = (isset($params['charset']) === true) ? $params['charset'] : '';
|
||||
|
||||
|
@ -170,7 +170,10 @@ final class DBMaintainer
|
|||
if ($rc === false) {
|
||||
$this->dbh = null;
|
||||
$this->connected = false;
|
||||
$this->lastError = __('Connection problems');
|
||||
$this->lastError = __(
|
||||
'Connection problems: %s',
|
||||
mysqli_connect_error()
|
||||
);
|
||||
} else {
|
||||
$dbc = new \mysqli(
|
||||
$this->host,
|
||||
|
|
Loading…
Reference in New Issue