IniWriter: don't persist a section key if the value is null

refs #11743
This commit is contained in:
Alexander A. Klimov 2016-10-12 11:06:04 +02:00
parent 8bc7d47a62
commit 9bb798c18b

View File

@ -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');
} }