Skip to content

Commit e7114b5

Browse files
committed
Check for sendEmail
1 parent 0a29d49 commit e7114b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_joomlaupdate/src/Model/NotificationModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getEmailReceivers($emailGroups): array
119119

120120
// Only users with valid email address who are not blocked can receive the email
121121
foreach ($usersInGroup as $user) {
122-
if (MailHelper::isEmailAddress($user->email) && !$user->block) {
122+
if (MailHelper::isEmailAddress($user->email) && $user->sendEmail === 1) {
123123
$user->email = strtolower(trim($user->email));
124124

125125
// Check if the email already exists in the emailReceivers array

0 commit comments

Comments
 (0)