summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-06 21:51:37 +0000
committerErmal <eri@pfsense.org>2010-08-06 21:51:37 +0000
commit187ce62b3d37252a4b75597724645eb77eb61a60 (patch)
tree97031c775c6fe6bf2dfeb985b7766b80dad30c7f /etc/inc/xmlparse.inc
parent83fdcf4590de662ae087c8ede92dc95b02052a26 (diff)
downloadpfsense-187ce62b3d37252a4b75597724645eb77eb61a60.zip
pfsense-187ce62b3d37252a4b75597724645eb77eb61a60.tar.gz
Do not call die while parsing package xml files. Instead return an empty array. This should avoid packages not uninstalling.
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index 162894f..3d20ebb 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -153,7 +153,7 @@ function parse_xml_config_pkg($cffile, $rootobj, $isstring = "false") {
}
$cfg =parse_xml_config_raw($cffile, $rootobj, $isstring);
if ($cfg == -1)
- die("XML error: not $rootboj object found!\n");
+ return array();
return $cfg;
}
@@ -291,4 +291,4 @@ function dump_xml_config_raw($arr, $rootobj) {
return $xmlconfig;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud