fix error

This commit is contained in:
邱博亞 2021-12-28 16:01:33 +08:00
parent 84f24fd202
commit fed8ec372c
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class AnnouncementsController < ApplicationController
end
end
def index
@type = 'index'
Bulletin.remove_expired_status
sorted,total_pages = get_sorted_annc
if sorted.nil?