? 726012-1_reset_description
? 726012-1_reset_description.patch
Index: libraries/common_syndication_parser.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds/libraries/common_syndication_parser.inc,v
retrieving revision 1.7
diff -u -p -r1.7 common_syndication_parser.inc
--- libraries/common_syndication_parser.inc	28 Jan 2010 19:57:54 -0000	1.7
+++ libraries/common_syndication_parser.inc	27 Feb 2010 04:14:06 -0000
@@ -346,6 +346,7 @@ function _parser_common_syndication_RSS2
   $parsed_source['items'] = array();
 
   foreach ($feed_XML->xpath('//item') as $news) {
+    $title = $body = $original_author = $original_url = $guid = '';
     $category = $news->xpath('category');
     // Get children for current namespace.
     if (version_compare(phpversion(), '5.1.2', '>')) {
@@ -358,9 +359,6 @@ function _parser_common_syndication_RSS2
     if (isset($news['title'])) {
       $title = "{$news['title']}";
     }
-    else {
-      $title = '';
-    }
 
     if (isset($news['description'])) {
       $body = "{$news['description']}";
@@ -387,24 +385,15 @@ function _parser_common_syndication_RSS2
     elseif (isset($dc["creator"])) {
       $original_author = (string)$dc["creator"];
     }
-    else {
-      $original_author = NULL;
-    }
 
     if (!empty($news['link'])) {
       $original_url = "{$news['link']}";
-    }
-    else {
-      $original_url = NULL;
+      $guid = $original_url;
     }
 
     if (isset($news['guid'])) {
       $guid = "{$news['guid']}";
     }
-    else {
-      // Attempt to fall back on original URL if GUID is not present.
-      $guid = $original_url;
-    }
 
     $additional_taxonomies = array();
     $additional_taxonomies['RSS Categories'] = array();
