From 87b40b6761e92d4c47c7d37814768023848644ea Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 17 Jul 2016 13:12:56 +0200 Subject: [PATCH] Remove unsupported return value --- .../files/lib/system/option/BirthdayOptionType.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php index 579411a69e..6d7d8f71f6 100644 --- a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php @@ -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')); -- 2.20.1