From d865ac7363ee443fcd5590b778baa8fe438ecd71 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 2 Jul 2020 19:03:19 +0200 Subject: [PATCH] Fix validating style when editing users in ACP See #3254 --- wcfsetup/install/files/lib/acp/form/UserEditForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } } -- 2.20.1