Remove unsupported return value
authorMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 11:12:56 +0000 (13:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 11:13:39 +0000 (13:13 +0200)
wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php

index 579411a69e9f0b4f10d76f45e754e2daf0a7ad0d..6d7d8f71f65479b33c280eb199634022297415c9 100644 (file)
@@ -104,7 +104,7 @@ class BirthdayOptionType extends DateOptionType {
                $ageFrom = intval($value['ageFrom']);
                $ageTo = intval($value['ageTo']);
                
-               if ($ageFrom < 0 || $ageFrom > 120 || $ageTo < 0 || $ageTo > 120) return false;
+               if ($ageFrom < 0 || $ageFrom > 120 || $ageTo < 0 || $ageTo > 120) return;
                
                $dateFrom = DateUtil::getDateTimeByTimestamp(TIME_NOW)->sub(new \DateInterval('P'.($ageTo + 1).'Y'))->add(new \DateInterval('P1D'));
                $dateTo = DateUtil::getDateTimeByTimestamp(TIME_NOW)->sub(new \DateInterval('P'.$ageFrom.'Y'));