From: Matthias Schmidt Date: Tue, 13 May 2014 20:17:43 +0000 (+0200) Subject: Remove erroneous code from BooleanOptionType X-Git-Tag: 2.1.0_Alpha_1~830 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=705d49418001817cc336d8b78d5d8270d49e0fcf;p=GitHub%2FWoltLab%2FWCF.git Remove erroneous code from BooleanOptionType --- diff --git a/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php b/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php index 12a288cad1..cab4b4ae4e 100644 --- a/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php @@ -72,8 +72,6 @@ class BooleanOptionType extends AbstractOptionType implements ISearchableUserOpt $value = intval($value); if (!$value) return; - if ($ageFrom < 0 || $ageFrom > 120 || $ageTo < 0 || $ageTo > 120) return false; - $userList->getConditionBuilder()->add('user_option_value.userOption'.$option->optionID.' = ?', array(1)); }