deprecated php methods

This commit is contained in:
Tony Landis
2009-03-25 22:10:40 -06:00
parent d1547673dc
commit 1225cb10c0
12 changed files with 22 additions and 22 deletions

View File

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