From: Alexander Ebert Date: Fri, 11 Aug 2023 14:56:36 +0000 (+0200) Subject: Add an safeguard for the color scheme option during the update X-Git-Tag: 6.0.0_Beta_1~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66e568b2df2c963326de82a87dc302e4d6820817;p=GitHub%2FWoltLab%2FWCF.git Add an safeguard for the color scheme option during the update --- diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index c91c17ebdb..e1a575a82e 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -304,6 +304,6 @@ class StyleHandler extends SingletonFactory return 'system'; } - return WCF::getUser()->getUserOption('colorScheme'); + return WCF::getUser()->getUserOption('colorScheme') ?? 'system'; } }