diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index eacd528c4d..78178b840d 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -119,11 +119,11 @@ function parse_xml_config_raw($cffile, $rootobj, $isstring = "false") { $parsedcfg = array(); $par = new XMLReader(); - $par->open($cffile); - - add_elements($parsedcfg, $par); - - $par->close(); + if ($par->open($cffile)) { + add_elements($parsedcfg, $par); + $par->close(); + } else + log_error("Error returned while trying to parse {$cffile}"); return $parsedcfg[$rootobj]; }