diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a9001bf341fc0fce34657831beda32e923452aa4..6f19c8392504dd0dca0d53babeb41713fe19b3fd 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 1dc6d18a898b8fcbfd79b2b59418c405eaebf1be..d1c04a02a466b678a2df63ff0e231bc90be881d5 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'])) {