fix error for sort event news
This commit is contained in:
parent
b59593aa39
commit
e328e1eb12
|
@ -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
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue