From 3d63cc3156039db53b8b3eaabea37a499861de9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sun, 29 Jan 2017 23:22:51 +0100 Subject: [PATCH] fix addObjectListCondition for UserRegistrationDateIntervalCondition --- .../condition/UserRegistrationDateIntervalCondition.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); } } -- 2.20.1