Skip to content

Commit fc9f889

Browse files
committed
@page variable should always be an int
1 parent fd300a7 commit fc9f889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/post_history_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def post
1414

1515
@count = base_query.count
1616

17-
@page = params[:page].nil? ? 1 : params[:page]
17+
@page = params[:page].nil? ? 1 : params[:page].to_i
1818

1919
render layout: 'without_sidebar'
2020
end

0 commit comments

Comments
 (0)