fix error

This commit is contained in:
chiu 2021-09-09 06:35:19 +00:00
parent 9cffdaeb63
commit 209903f35d
1 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ class ArchivesController < ApplicationController
end
def index
params = OrbitHelper.params
@@total_pages = 1
if !params['title'].nil?
files_by_category = ArchiveFile.where(is_hidden: false).order_by(:created_at => "desc").group_by(&:category)
categories = files_by_category.keys
@ -74,7 +75,6 @@ class ArchivesController < ApplicationController
}
end
end
@@total_pages = 1
else
if OrbitHelper.page_data_count > 0
OrbitHelper.set_page_data_count 0
@ -387,4 +387,4 @@ class ArchivesController < ApplicationController
def self.get_total_pages
@@total_pages
end
end
end