Try to catch some errors

This commit is contained in:
Nathan Gray
2013-01-03 15:53:31 +00:00
parent 21fdd9abf2
commit 3a1c4fb7fb
2 changed files with 13 additions and 5 deletions

View File

@ -79,7 +79,8 @@ class importexport_arrayxml {
$n = &$_xml;
} else {
$n = new DOMDocument;
$n->loadXML($_xml);
$loaded = $n->loadXML($_xml);
if(!$loaded) return array();
}
$xml_array = array();