mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
RedisConfigForm: Use empty string as default path for unset client certificate and key
This commit is contained in:
parent
afa54cf1ba
commit
d3d746f2ec
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ class RedisConfigForm extends ConfigForm
|
|||
$redisConfig = $this->config->getSection('redis');
|
||||
if ($redisConfig->get('tls', false)) {
|
||||
foreach (['ca', 'cert', 'key'] as $name) {
|
||||
$path = $redisConfig->get($name);
|
||||
$path = $redisConfig->get($name, '');
|
||||
if (file_exists($path)) {
|
||||
try {
|
||||
$redisConfig[$name . '_pem'] = file_get_contents($path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue