diff --git a/files/templates/submission.html b/files/templates/submission.html
index 945e1dcba1..7d0c8aba78 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -241,7 +241,7 @@
- {% if p.author.banned_by %}
+ {% if p.bannedfor and p.author.banned_by %}
{% endif %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index f5118f0732..b9c4aba587 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -87,7 +87,7 @@
- {% if p.author.banned_by %}
+ {% if p.bannedfor and p.author.banned_by %}
{% endif %}