diff options
-rw-r--r-- | etc/inc/xmlparse.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index 631cb9f..7068288 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -184,13 +184,14 @@ function dump_xml_config_sub($arr, $indent) { $xmlconfig .= "</$ent>\n"; } else { $xmlconfig .= str_repeat("\t", $indent); - if ((is_bool($cval) && ($cval == true)) || - ($cval === "")) + if($cval === false) continue; + if(($cval === true) || ($cval === "")) { $xmlconfig .= "<$ent/>\n"; - else if (!is_bool($cval)) + } else { $xmlconfig .= "<$ent>" . htmlspecialchars($cval) . "</$ent>\n"; } } + } } else { /* it's an array */ $xmlconfig .= str_repeat("\t", $indent); @@ -237,4 +238,4 @@ function dump_xml_config_raw($arr, $rootobj) { return $xmlconfig; } -?>
\ No newline at end of file +?> |