diff options
author | Ermal <eri@pfsense.org> | 2010-03-19 17:49:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-19 17:49:39 +0000 |
commit | bef6cb998bcce8fed6bdea8e1b23b52b0ae064b2 (patch) | |
tree | 5af3f39af4443695e4f876a713385aba8acab19b /etc/inc/xmlparse.inc | |
parent | 40050fabb4edb5c952f681cbe759452fecf83903 (diff) | |
download | pfsense-bef6cb998bcce8fed6bdea8e1b23b52b0ae064b2.zip pfsense-bef6cb998bcce8fed6bdea8e1b23b52b0ae064b2.tar.gz |
Fix parsign of packages xml.
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r-- | etc/inc/xmlparse.inc | 5 |
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') { |