From 4b229da9deff993c230f99cb62a3c927de98c011 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Mon, 29 Mar 2010 00:25:38 +0000 Subject: [PATCH] #678122 monkeyninja, aditya_kristanto: Duplication of item description to other items. --- CHANGELOG.txt | 2 ++ libraries/common_syndication_parser.inc | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a9001bf3..6f19c839 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,8 @@ Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx ---------------------------------- +- #678122 monkeyninja, aditya_kristanto: Duplication of item description to + other items. - #750168 jtr: _parser_common_syndication_title does not strip html tags before constructing a title. - #648080 pvhee: FeedsNodeProcessor - static caching of mapping targets makes diff --git a/libraries/common_syndication_parser.inc b/libraries/common_syndication_parser.inc index 1dc6d18a..d1c04a02 100644 --- a/libraries/common_syndication_parser.inc +++ b/libraries/common_syndication_parser.inc @@ -360,6 +360,7 @@ function _parser_common_syndication_RSS20_parse($feed_XML) { $title = "{$news['title']}"; } + $body = ''; if (isset($news['description'])) { $body = "{$news['description']}"; } @@ -375,8 +376,8 @@ function _parser_common_syndication_RSS20_parse($feed_XML) { $body = "{$content['encoded']}"; } } - if (!isset($body)) { - $body = "{$news['title']}"; + if (empty($body)) { + $body = $title; } if (!empty($news['author'])) { -- GitLab