mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-28 13:18:11 +02:00
Merge pull request #1806 from Icinga/bugfix/render-empty-strings
ConfigHelper: Ensure empty vars are not written as void to config
This commit is contained in:
commit
70dfc9dae9
@ -406,6 +406,10 @@ class IcingaConfigHelper
|
||||
$parts[] = static::renderString(substr($string, $offset, $i - $offset));
|
||||
}
|
||||
|
||||
return implode(' + ', $parts);
|
||||
if (! empty($parts)) {
|
||||
return implode(' + ', $parts);
|
||||
} else {
|
||||
return '""';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user