mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
IniWriter: don't persist a section key if the value is null
refs #11743
This commit is contained in:
parent
8bc7d47a62
commit
9bb798c18b
@ -149,6 +149,10 @@ class IniWriter
|
|||||||
$domSection = $doc->getSection($section);
|
$domSection = $doc->getSection($section);
|
||||||
}
|
}
|
||||||
foreach ($directives as $key => $value) {
|
foreach ($directives as $key => $value) {
|
||||||
|
if ($value === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($value instanceof ConfigObject) {
|
if ($value instanceof ConfigObject) {
|
||||||
throw new ProgrammingError('Cannot diff recursive configs');
|
throw new ProgrammingError('Cannot diff recursive configs');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user