zen.ishtar - 2006-11-13

328 array_merge($elms, $child->getElementsByTagName($tagName));

to be

328 $elms = (is_array($child->getElementsByTagName($tagName))) ? a    rray_merge($elms, $child->getElementsByTagName($tagName)) : $elms;

610 $elms = array_merge($elms, $child->getElementsByTagName($tagName));

to be

610 if(is_array($elms) && is_array($child->getElementsByTagName($tagName))    )
611                                 $elms = array_merge($elms, $child->getElementsByTagName($tagName));