skip xml tags on false booleans in Config->fromArray()

This commit is contained in:
Ad Schellevis 2015-03-18 20:20:45 +01:00
parent 02970f7540
commit 81bf3210ea

View File

@ -141,6 +141,10 @@ class Config extends Singleton
}
foreach ($source as $itemKey => $itemValue) {
if (is_bool($itemValue) && $itemValue == false) {
// skip empty booleans
continue;
}
if (is_numeric($itemKey)) {
// recurring tag (content), use parent tagname.
$childNode = $node->addChild($parentTagName);