summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index 459ee15..3dac5a7 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -173,8 +173,11 @@ function parse_xml_config_pkg($cffile, $rootobj, $isstring = "false") {
$listtags[] = $tag;
}
}
- if (parse_xml_config_raw($cffile, $rootobj, $isstring) == -1)
+ $cfg =parse_xml_config_raw($cffile, $rootobj, $isstring);
+ if ($cfg == -1)
die("XML error: not $rootboj object found!\n");
+
+ return $cfg;
}
function parse_xml_regdomain(&$rdattributes, $rdfile = '/etc/regdomain.xml', $rootobj = 'regulatory-data') {
OpenPOWER on IntegriCloud