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
1 changed files with 4 additions and 0 deletions

View File

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