From 37c076c4c802b58a1d0852eda76157a24f48ee67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 21 Aug 2020 23:17:17 +0200 Subject: [PATCH] Show default theme, if database has unknown theme value. This prevents from deathlocks if somehow the DB value becomes invalid. This prevents behavior like in issue #76. --- templates/base.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base.html.twig b/templates/base.html.twig index 9e01abdf..b6537c36 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -39,7 +39,7 @@ - {% if theme %} + {% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %} {% else %}