deprecated php methods
This commit is contained in:
@@ -65,7 +65,7 @@ class CORE_xml
|
||||
|
||||
// new XML to Array for PHP5 and SimpleXML
|
||||
function SimpleXML2Array($xml) {
|
||||
if (get_class($xml) == 'SimpleXMLElement') {
|
||||
if (is_object($xml) && get_class($xml) == 'SimpleXMLElement') {
|
||||
$attributes = $xml->attributes();
|
||||
foreach($attributes as $k=>$v) {
|
||||
if ($v) $a[$k] = (string) $v;
|
||||
|
Reference in New Issue
Block a user