From 66e568b2df2c963326de82a87dc302e4d6820817 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 11 Aug 2023 16:56:36 +0200 Subject: [PATCH] Add an safeguard for the color scheme option during the update --- wcfsetup/install/files/lib/system/style/StyleHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } } -- 2.20.1