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);
|
||||
}
|
||||
foreach ($directives as $key => $value) {
|
||||
if ($value === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($value instanceof ConfigObject) {
|
||||
throw new ProgrammingError('Cannot diff recursive configs');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue