aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-07-06 10:10:43 +0000
committerMichaela Brückner <brueckner@data-quest.de>2023-07-06 10:10:43 +0000
commit206ae0ee491775ceb5b538e02d9ef9b60f5b5b39 (patch)
treeabda6d6547aeac60555ee989ed7439d44b722e24
parentb736b2c9e2a03305b21bafd49b3f300e46c8c16d (diff)
Apply 1 suggestion(s) to 1 file(s)biest-2652
-rw-r--r--lib/seminar_open.php2
1 files changed, 1 insertions, 1 deletions
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);
}