Commit 81bf3210 authored by Ad Schellevis's avatar Ad Schellevis

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

parent 02970f75
...@@ -141,6 +141,10 @@ class Config extends Singleton ...@@ -141,6 +141,10 @@ class Config extends Singleton
} }
foreach ($source as $itemKey => $itemValue) { foreach ($source as $itemKey => $itemValue) {
if (is_bool($itemValue) && $itemValue == false) {
// skip empty booleans
continue;
}
if (is_numeric($itemKey)) { if (is_numeric($itemKey)) {
// recurring tag (content), use parent tagname. // recurring tag (content), use parent tagname.
$childNode = $node->addChild($parentTagName); $childNode = $node->addChild($parentTagName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment