Skip to content

Commit

Permalink
@page variable should always be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Oct 30, 2023
1 parent fd300a7 commit fc9f889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/post_history_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def post

@count = base_query.count

@page = params[:page].nil? ? 1 : params[:page]
@page = params[:page].nil? ? 1 : params[:page].to_i

render layout: 'without_sidebar'
end
Expand Down

0 comments on commit fc9f889

Please sign in to comment.