mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Test for array before using as array. Fixes #9611
This commit is contained in:
parent
2c544ac61c
commit
40caec85cc
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user