Add an safeguard for the color scheme option during the update
authorAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 14:56:36 +0000 (16:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 14:56:36 +0000 (16:56 +0200)
wcfsetup/install/files/lib/system/style/StyleHandler.class.php

index c91c17ebdbe63ade03b0a3fc8b13aba77cdd0e1a..e1a575a82e20dbe69439fbb297fbdc0f7374e99e 100644 (file)
@@ -304,6 +304,6 @@ class StyleHandler extends SingletonFactory
             return 'system';
         }
 
-        return WCF::getUser()->getUserOption('colorScheme');
+        return WCF::getUser()->getUserOption('colorScheme') ?? 'system';
     }
 }