Remove erroneous code from BooleanOptionType
authorMatthias Schmidt <gravatronics@live.com>
Tue, 13 May 2014 20:17:43 +0000 (22:17 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 13 May 2014 20:17:43 +0000 (22:17 +0200)
wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php

index 12a288cad1580f89faa0c53373af08eb05b0d771..cab4b4ae4ef9b96eff9a4afa594b50e7c38e7e3d 100644 (file)
@@ -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));
        }