From 0eb230cb2e47943530f607a442bbaf1c26f03e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Wed, 9 Sep 2009 14:40:09 +0000 Subject: If it is supposed to be an array then make sure it has the array type. This fixes wireless configuration problems at least. --- etc/inc/xmlparse.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc/inc/xmlparse.inc') diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index 78178b8..3859222 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -75,8 +75,11 @@ function add_elements(&$cfgarray, &$parser) { } else { if (isset($listtags[$parser->name])) add_elements($cfgarray[$parser->name][], $parser); - else + else { add_elements($cfgarray[$parser->name], $parser); + if (!isset($cfgarray[$parser->name])) + $cfgarray[$parser->name] = array(); + } } break; case XMLReader::TEXT: -- cgit v1.1