From 705d49418001817cc336d8b78d5d8270d49e0fcf Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 13 May 2014 22:17:43 +0200 Subject: [PATCH] Remove erroneous code from BooleanOptionType --- .../install/files/lib/system/option/BooleanOptionType.class.php | 2 -- 1 file changed, 2 deletions(-) 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)); } -- 2.20.1