diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 53e26afda2d..9831ee88c33 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -8,7 +8,7 @@ class NotificationsController < ApplicationController user = current_user if params[:recent].present? - limit = params[:limit].to_i || 15 + limit = (params[:limit] || 15).to_i limit = 50 if limit > 50 notifications = Notification.recent_report(current_user, limit)