fixed: Syndicated content fills results with empty entries up to max headlines count
This commit is contained in:
parent
88e7113fae
commit
e1527b5fda
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
7.5.11
|
||||
- fixed: email password recovery submit button effected by UI level
|
||||
- fixed: Creating a shortcut creates a version tag even with autocommit turned on
|
||||
- fixed: Syndicated content fills results with empty entries up to max headlines count
|
||||
- fixed: userImport.pl overwrites settings when updating users
|
||||
- fixed: Collaboration RSS link in header doesn't indicate title
|
||||
- fixed: edit branch can't update URLs on most assets
|
||||
|
|
|
|||
|
|
@ -485,7 +485,9 @@ sub _create_interleaved_items {
|
|||
}
|
||||
@$items = sort { $b->{date} <=> $a->{date} } @$items;
|
||||
# limit to $maxHeadlines
|
||||
@$items = @$items[0 .. ($maxHeadlines - 1)];
|
||||
if (@$items > $maxHeadlines) {
|
||||
splice @$items, $maxHeadlines;
|
||||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue