Skip to content

Commit

Permalink
Merge pull request #5789 from WoltLab/bugfix/notifcation-empty-recipient
Browse files Browse the repository at this point in the history
Check if recipientIDs empty
  • Loading branch information
Cyperghost authored Feb 2, 2024
2 parents e8b4339 + b4c41c0 commit 0de8476
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public function fireEvent(
if (!isset($this->availableEvents[$objectType][$eventName])) {
throw new SystemException("Unknown event " . $objectType . "-" . $eventName . " given");
}
if ($recipientIDs === []) {
return;
}

// get objects
$objectTypeObject = $this->availableObjectTypes[$objectType];
Expand Down

0 comments on commit 0de8476

Please sign in to comment.