diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb index 8e0826c1f..14e9001f1 100644 --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -7,7 +7,10 @@ class ReportController < ApplicationController before_action :redirect_unless_moderator, except: [:create] def index - @reports = Report.where(reviewed: false) + @reports ||= [] + Report.where(reviewed: false).each do |report| + @reports << report unless report.item.nil? + end end def update