From: Marcel Werk Date: Thu, 16 Jul 2015 10:09:14 +0000 (+0200) Subject: Fixed validation of required boolean fields X-Git-Tag: 2.1.6~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f58229761c0363e6e1adcd5d3199a5bba4642edf;p=GitHub%2FWoltLab%2FWCF.git Fixed validation of required boolean fields --- diff --git a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php index 67ed0e848f..bc0b10b253 100644 --- a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php @@ -187,7 +187,7 @@ class UserOptionHandler extends OptionHandler { protected function validateOption(Option $option) { parent::validateOption($option); - if ($option->required && empty($this->optionValues[$option->optionName])) { + if ($option->required && $option->optionType != 'boolean' && empty($this->optionValues[$option->optionName])) { throw new UserInputException($option->optionName); }