Skip to content

Commit 14bf1e9

Browse files
committed
Fix comparison logic
1 parent 8ea45e2 commit 14bf1e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wcfsetup/install/files/lib/system/condition/type/user/UserRegistrationDaysConditionType.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function matches(object $object): bool
7272
["condition" => $condition, "timestamp" => $timestamp] = $this->getParsedFilter();
7373

7474
return match ($condition) {
75-
'>' => $object->registrationDate < $timestamp,
76-
'<' => $object->registrationDate > $timestamp,
77-
'>=' => $object->registrationDate <= $timestamp,
78-
'<=' => $object->registrationDate >= $timestamp,
75+
'>' => $object->registrationDate > $timestamp,
76+
'<' => $object->registrationDate < $timestamp,
77+
'>=' => $object->registrationDate >= $timestamp,
78+
'<=' => $object->registrationDate <= $timestamp,
7979
default => throw new \InvalidArgumentException("Unknown condition: {$condition}"),
8080
};
8181
}

0 commit comments

Comments
 (0)