Closed (duplicate)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2010 at 22:10 UTC
Updated:
19 Jun 2010 at 14:57 UTC
In common_syndication_parser.inc, _parser_common_syndication_RSS20_parse(), the $body var needs to be unset somewhere towards the beginning of the foreach() on line 348. In the event that there are one or some 'descriptions' for news feeds but not others, the last used 'description' for a previously processed item will continue to be set as the 'body' element for subsequent items with no 'description'.
Attached is a patch that does an
unset($body)
at the top of the foreach().
| Comment | File | Size | Author |
|---|---|---|---|
| unset_body.patch | 499 bytes | awjrichards |
Comments
Comment #1
dddave commentedComment #2
alex_b commentedThis is looking good. The indent should be double spaces instead of a tab (see drupal coding standards).
Will fix this on commit.
Comment #3
alex_b commentedSorry, this has been fixed a while ago: http://drupalcode.org/viewvc/drupal/contributions/modules/feeds/librarie...
All should work fine.