diff --git a/LSS/XML2Array.php b/LSS/XML2Array.php index cc03efe..31ce04b 100644 --- a/LSS/XML2Array.php +++ b/LSS/XML2Array.php @@ -110,6 +110,10 @@ protected static function &convert($node) { if(isset($child->tagName)) { $t = $child->tagName; + // avoid fatal error if the content looks like '
You are being redirected.' + if(isset($output) && !is_array($output)) { + continue; + } // assume more nodes of same kind are coming if(!isset($output[$t])) { $output[$t] = array();