Fixed: [notificationMailer] invert 'if continue' condition inside foreach loop

This commit is contained in:
2023-08-24 15:14:47 +02:00
parent 95b3933650
commit dcae15e8d8
2 changed files with 7 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class NotificationMailer
[$comment->getNotification()->getSender()]
) as $dest
) {
if (null === $dest->getEmail() || $comment->getCreatedBy() !== $dest) {
if (null !== $dest->getEmail() && $comment->getCreatedBy() === $dest) {
continue;
}
$email = new TemplatedEmail();