aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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);
}