From: Matthias Schmidt Date: Sun, 17 Jul 2016 11:12:56 +0000 (+0200) Subject: Remove unsupported return value X-Git-Tag: 3.0.0_Beta_1~1073 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87b40b6761e92d4c47c7d37814768023848644ea;p=GitHub%2FWoltLab%2FWCF.git Remove unsupported return value --- 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'));