Clear xml errors

This commit is contained in:
Thomas Müller 2015-12-17 17:28:44 +01:00
parent 26f416b9f5
commit 62b82cfe4b
1 changed files with 1 additions and 0 deletions

View File

@ -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);