Clear xml errors
This commit is contained in:
parent
26f416b9f5
commit
62b82cfe4b
|
@ -59,6 +59,7 @@ class InfoParser {
|
|||
$xml = simplexml_load_file($file);
|
||||
libxml_disable_entity_loader($loadEntities);
|
||||
if ($xml == false) {
|
||||
libxml_clear_errors();
|
||||
return null;
|
||||
}
|
||||
$array = $this->xmlToArray($xml);
|
||||
|
|
Loading…
Reference in New Issue