diff --git a/app/helpers/event_news_helper.rb b/app/helpers/event_news_helper.rb index 8967748..303a29f 100644 --- a/app/helpers/event_news_helper.rb +++ b/app/helpers/event_news_helper.rb @@ -241,7 +241,7 @@ module EventNewsHelper tmp1 = event_news["event_date"].blank? tmp2 = event_news["postdate"].blank? [ - (@show_today_data_first ? a['sort_number'].to_i : -a['sort_number'].to_i), + (@show_today_data_first ? event_news['sort_number'].to_i : -event_news['sort_number'].to_i), tmp1 ? 0 : 1, tmp1 ? nil : event_news["event_date"].to_time, tmp2 ? 0 : 1, tmp2 ? nil : event_news["postdate"].to_time ]