Changes to AgileBill
This commit is contained in:
@@ -42,6 +42,9 @@ class CORE_xml
|
||||
if(!is_file($file)) return false;
|
||||
$xml = simplexml_load_file ($file);
|
||||
if(is_object($xml)) {
|
||||
# Comments in the XML field are being translated as comment fields.
|
||||
if (isset($xml->field->comment))
|
||||
unset($xml->field->comment);
|
||||
$dom = dom_import_simplexml ($xml);
|
||||
$arr["$dom->tagName"] = SimpleXML2Array($xml);
|
||||
}
|
||||
@@ -268,4 +271,4 @@ function _xmlFileToArrayClose(& $topTag, & $includeTopTag, & $val, & $lowerCaseT
|
||||
}
|
||||
return true;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user