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