mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
skip xml tags on false booleans in Config->fromArray()
This commit is contained in:
parent
02970f7540
commit
81bf3210ea
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user