diff --git a/src/etc/inc/xmlparse.inc b/src/etc/inc/xmlparse.inc index fa25031c4c..aa5f02693d 100644 --- a/src/etc/inc/xmlparse.inc +++ b/src/etc/inc/xmlparse.inc @@ -230,6 +230,10 @@ function dump_xml_config_sub($arr, $indent) { global $listtags; + if (!is_array($arr)) { + return null; + } + $xmlconfig = ""; foreach ($arr as $ent => $val) {