Commit 532354a8 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#263517 by mfb: fix notice when parsing an RSS feed with file attachments

parent 74e20528
......@@ -1110,7 +1110,7 @@ function format_xml_elements($array) {
$output .= drupal_attributes($value['attributes']);
}
if ($value['value'] != '') {
if (isset($value['value']) && $value['value'] != '') {
$output .= '>'. (is_array($value['value']) ? format_xml_elements($value['value']) : check_plain($value['value'])) .'</'. $value['key'] .">\n";
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment