Skip to content

Commit 456c3e2

Browse files
committed
Add a fallback value if the selected colorScheme is null
ref https://www.woltlab.com/community/thread/317953-interner-fehlercode/
1 parent af6a6d1 commit 456c3e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wcfsetup/install/files/lib/acp/form/UserEditForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ protected function readDefaultValues()
358358
$this->avatarType = 'custom';
359359
}
360360

361-
$this->colorScheme = $this->user->getUserOption('colorScheme');
361+
$this->colorScheme = $this->user->getUserOption('colorScheme') ?? 'system';
362362
}
363363

364364
/**

0 commit comments

Comments
 (0)