From: Eugen Rochko Date: Wed, 11 Sep 2019 23:51:01 +0000 (+0200) Subject: Fix nil error in warning e-mail template (#11812) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=3a3b40e0c36902b66526303af8d5fdecb8bab5c2;p=mastodon.git Fix nil error in warning e-mail template (#11812) --- diff --git a/app/views/user_mailer/warning.html.haml b/app/views/user_mailer/warning.html.haml index 89dc2a75d..5a2911ecb 100644 --- a/app/views/user_mailer/warning.html.haml +++ b/app/views/user_mailer/warning.html.haml @@ -58,7 +58,7 @@ %table.content-section{ cellspacing: 0, cellpadding: 0 } %tbody %tr - %td.content-cell{ class: @statuses.empty? ? '' : 'content-start' } + %td.content-cell{ class: @statuses.nil? || @statuses.empty? ? '' : 'content-start' } %table.column{ cellspacing: 0, cellpadding: 0 } %tbody %tr