]> cat aescling's git repositories - mastodon.git/commitdiff
Fix nil error in warning e-mail template (#11812)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 11 Sep 2019 23:51:01 +0000 (01:51 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 23:51:01 +0000 (01:51 +0200)
app/views/user_mailer/warning.html.haml

index 89dc2a75dbf6512bdd1c89d3088e4d83663c4566..5a2911ecba574e3ab7808089df7c7527ed267a45 100644 (file)
@@ -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