contao/core — Issue #3687: ModuleRssReader.php wrong style class
Author: rainermueller
Created: 2011-12-13 16:19:20+00:00
State: open

if rss feed contains only one item, the style class on rss_items_only should contain both first and last (see ModuleNews.php or ModuleNewsMenu.php)

line 177
// old
'class' => (($i == 0) ? ' first' : (($i == $last) ? ' last' : '')) . ((($i % 2) == 0) ? ' even' : ' odd'),

// new
'class' => (($i == 1) ? ' first' : '') . (($i == $last) ? ' last' : '') . ((($i % 2) == 0) ? ' even' : ' odd'),