Skip to content

Commit 3fa0075

Browse files
forgive38simon
andauthored
#10468 resolve: co authors receive several e-mails when a decision is notified (#10479)
Co-authored-by: simon <[email protected]>
1 parent bf3a533 commit 3fa0075

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

classes/decision/types/traits/NotifyAuthors.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ protected function sendAuthorEmail(Mailable $mailable, EmailData $email, User $e
9494
continue;
9595
}
9696
$mailable->to($author->getEmail(), $author->getFullName());
97-
Mail::send($mailable);
98-
}
97+
}
98+
if ( sizeof($mailable->to) > 0 ) {
99+
Mail::send($mailable);
100+
}
99101
}
100102
}
101103

0 commit comments

Comments
 (0)