From: Matthias Schmidt Date: Thu, 2 Jul 2020 17:03:19 +0000 (+0200) Subject: Fix validating style when editing users in ACP X-Git-Tag: 5.3.0_Alpha_1~169 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d865ac7363ee443fcd5590b778baa8fe438ecd71;p=GitHub%2FWoltLab%2FWCF.git Fix validating style when editing users in ACP See #3254 --- diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index 9a94c562f9..ac99ae5531 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -147,7 +147,7 @@ class UserEditForm extends UserAddForm { * @var int * @since 5.3 */ - public $styleID; + public $styleID = 0; /** * @inheritDoc @@ -548,7 +548,7 @@ class UserEditForm extends UserAddForm { parent::validate(); if (!isset($this->availableStyles[$this->styleID])) { - throw new UserInputException('styleID', 'noValidSelection'); + $this->styleID = 0; } } }