From 206ae0ee491775ceb5b538e02d9ef9b60f5b5b39 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Thu, 6 Jul 2023 10:10:43 +0000 Subject: Apply 1 suggestion(s) to 1 file(s) --- lib/seminar_open.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seminar_open.php b/lib/seminar_open.php index 16918bc..d31cc07 100644 --- a/lib/seminar_open.php +++ b/lib/seminar_open.php @@ -104,7 +104,7 @@ if ($auth->is_authenticated() && is_object($user) && $user->id != "nobody") { if (!empty($_SESSION['contrast'])) { UserConfig::get($GLOBALS['user']->id)->store('USER_HIGH_CONTRAST', 1); unset($_SESSION['contrast']); - } else { + } elseif (UserConfig::get($GLOBALS['user']->id)->USER_HIGH_CONTRAST) { UserConfig::get($GLOBALS['user']->id)->store('USER_HIGH_CONTRAST', 0); } -- cgit v1.0