Skip to content
Snippets Groups Projects
Commit dbccfeef authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #1172 DEL user will not recieve notif

parent 2a012250
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,8 @@ while ($state <> 'END') { ...@@ -85,8 +85,8 @@ while ($state <> 'END') {
$recipient = $recipients[$i]; $recipient = $recipients[$i];
$user_id = $recipient->user_id; $user_id = $recipient->user_id;
$logger->write('Recipient ' . $user_id, 'INFO'); $logger->write('Recipient ' . $user_id, 'INFO');
if($recipient->enabled == 'N') { if($recipient->enabled == 'N' || $recipient->status == 'DEL') {
$logger->write($user_id .' is disabled', 'INFO'); $logger->write($user_id .' is disabled or deleted, this notification will not sent', 'INFO');
unset($recipients[$i]); unset($recipients[$i]);
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment