fix error for sort event news

This commit is contained in:
chiu 2024-10-17 01:21:38 +00:00
parent b59593aa39
commit e328e1eb12
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ module EventNewsHelper
tmp1 = event_news["event_date"].blank? tmp1 = event_news["event_date"].blank?
tmp2 = event_news["postdate"].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, tmp1 ? 0 : 1, tmp1 ? nil : event_news["event_date"].to_time,
tmp2 ? 0 : 1, tmp2 ? nil : event_news["postdate"].to_time tmp2 ? 0 : 1, tmp2 ? nil : event_news["postdate"].to_time
] ]