From 532354a8ede34c1bf5ffa3eeab77f8f28aa1d3ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Tue, 6 Oct 2009 12:03:11 +0000
Subject: [PATCH] #263517 by mfb: fix notice when parsing an RSS feed with file
 attachments

---
 includes/common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/common.inc b/includes/common.inc
index 2f5d6b1b2480..e29627bac9f8 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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 {
-- 
GitLab