From 9d14321cd1176cac2775bacc4fdf24da8f693ed0 Mon Sep 17 00:00:00 2001 From: Yuki Date: Thu, 30 Apr 2015 05:17:55 +0530 Subject: [PATCH] Fix Retrospring/bugs#41 --- app/views/moderation/_moderationbox.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/moderation/_moderationbox.html.haml b/app/views/moderation/_moderationbox.html.haml index cb2c9c52..225f3e15 100644 --- a/app/views/moderation/_moderationbox.html.haml +++ b/app/views/moderation/_moderationbox.html.haml @@ -1,4 +1,4 @@ -- unless report.target.nil? +- unless report.nil? or report.target.nil? or report.user.nil? or report.type.nil? .panel.panel-default.moderationbox{data: { id: report.id }} .panel-heading %img.img-rounded.answerbox--img{src: gravatar_url(report.user)}