diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php index cff2339d0..7a51f7a08 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php @@ -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);