diff options
author | Ermal <eri@pfsense.org> | 2010-08-06 21:51:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-06 21:51:37 +0000 |
commit | 187ce62b3d37252a4b75597724645eb77eb61a60 (patch) | |
tree | 97031c775c6fe6bf2dfeb985b7766b80dad30c7f | |
parent | 83fdcf4590de662ae087c8ede92dc95b02052a26 (diff) | |
download | pfsense-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.
-rw-r--r-- | etc/inc/xmlparse.inc | 4 |
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 +?> |