From 647081539c8f7101701a7d6c19e93d3393748000 Mon Sep 17 00:00:00 2001 From: xianbo Date: Fri, 18 Apr 2014 19:50:42 +0800 Subject: [PATCH] fix --- app/helpers/activities_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/activities_helper.rb b/app/helpers/activities_helper.rb index a5aa247d5..c15d89e0c 100644 --- a/app/helpers/activities_helper.rb +++ b/app/helpers/activities_helper.rb @@ -24,10 +24,10 @@ module ActivitiesHelper events.sort {|x, y| y.event_datetime <=> x.event_datetime}.each do |event| if group_events = events_by_group.delete(event.event_group) group_events.sort {|x, y| y.event_datetime <=> x.event_datetime}.each_with_index do |e, i| - sorted_events << [e, i > 0] + sorted_events << [e, i > 0] unless e.event_description.nil? end end end - sorted_events + sorted_events end end