Skip to content

Commit bd4edd1

Browse files
committed
Fix matches logic
1 parent 14bf1e9 commit bd4edd1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public function applyFilter(DatabaseObjectList $objectList): void
3131
public function matches(object $object): bool
3232
{
3333
if ($this->filter) {
34-
return $object->activationCode !== 0;
35-
} else {
3634
return $object->activationCode === 0;
35+
} else {
36+
return $object->activationCode !== 0;
3737
}
3838
}
3939
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function applyFilter(DatabaseObjectList $objectList): void
3737
public function matches(object $object): bool
3838
{
3939
if ($this->filter) {
40-
return $object->signature === '' || $object->signature === null;
41-
} else {
4240
return $object->signature !== '' && $object->signature !== null;
41+
} else {
42+
return $object->signature === '' || $object->signature === null;
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)