summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-01 15:46:54 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-01 15:46:54 -0700
commit1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34 (patch)
treeba1e3cad0503ba897828544476bd32d7e39a3218 /etc/inc/xmlparse.inc
parent306b8ff7297d63f68b4ddcc27d1527ca891a6f76 (diff)
parent0c1b9688b33959ab35f95cf02087ce2e427a1420 (diff)
downloadpfsense-1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34.zip
pfsense-1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34.tar.gz
Merge commit 'mainline/master'
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index 23ae588..c9720c0 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -215,6 +215,10 @@ function dump_xml_config_sub($arr, $indent) {
}
}
}
+ } else if (empty($val)) {
+ $xmlconfig .= str_repeat("\t", $indent);
+ $xmlconfig .= "<$ent/>\n";
+ $xmlconfig .= str_repeat("\t", $indent);
} else {
/* it's an array */
$xmlconfig .= str_repeat("\t", $indent);
OpenPOWER on IntegriCloud