From bd3f0fcc84217c2019e375047632c7c4af3bdfb6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 7 Dec 2022 19:57:53 +0200 Subject: [PATCH] fix 500 error --- files/templates/util/html_head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 4f60b25af..bf8a228b6 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -173,7 +173,7 @@ {% macro stylesheets_lower() %} {% if not (request.path.startswith('/@') and u) %} - {% if SITE_NAME == 'rDrama' and v.agendaposter %} + {% if SITE_NAME == 'rDrama' and v and v.agendaposter %} {% set background = '/i/backgrounds/anime/1.webp?v=4' %} {% elif v and v.background %} {% set background = v.background %}