diff --git a/notifications/trunk/batch/process_event_stack.php b/notifications/trunk/batch/process_event_stack.php index 6d0702f177f2112806919a9a58f088a271335a0c..acd610033a148d45b752ef694bb03730378b5d20 100755 --- a/notifications/trunk/batch/process_event_stack.php +++ b/notifications/trunk/batch/process_event_stack.php @@ -85,8 +85,8 @@ while ($state <> 'END') { $recipient = $recipients[$i]; $user_id = $recipient->user_id; $logger->write('Recipient ' . $user_id, 'INFO'); - if($recipient->enabled == 'N') { - $logger->write($user_id .' is disabled', 'INFO'); + if($recipient->enabled == 'N' || $recipient->status == 'DEL') { + $logger->write($user_id .' is disabled or deleted, this notification will not sent', 'INFO'); unset($recipients[$i]); continue; }