From: Joshua Rüsweg Date: Sun, 29 Jan 2017 22:22:51 +0000 (+0100) Subject: fix addObjectListCondition for UserRegistrationDateIntervalCondition X-Git-Tag: 3.0.2~39^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d63cc3156039db53b8b3eaabea37a499861de9c;p=GitHub%2FWoltLab%2FWCF.git fix addObjectListCondition for UserRegistrationDateIntervalCondition --- diff --git a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php index eb8b760ae7..2d46da369e 100644 --- a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php @@ -36,10 +36,10 @@ class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition imp throw new \InvalidArgumentException("Object list is no instance of '".UserList::class."', instance of '".get_class($objectList)."' given."); } - if ($conditionData['greaterThan'] !== null) { + if (isset($conditionData['greaterThan'])) { $objectList->getConditionBuilder()->add('user_table.registrationDate < ?', [TIME_NOW - $conditionData['greaterThan'] * 86400]); } - if ($conditionData['lessThan'] !== null) { + if (isset($conditionData['lessThan'])) { $objectList->getConditionBuilder()->add('user_table.registrationDate > ?', [TIME_NOW - $conditionData['lessThan'] * 86400]); } }