From dbccfeef4b6d6e7d086625c408365f82506be296 Mon Sep 17 00:00:00 2001
From: Alex Orluc <alex.orluc@maarch.org>
Date: Thu, 27 Mar 2014 10:29:57 +0000
Subject: [PATCH] FIX #1172 DEL user will not recieve notif

---
 notifications/trunk/batch/process_event_stack.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notifications/trunk/batch/process_event_stack.php b/notifications/trunk/batch/process_event_stack.php
index 6d0702f177f..acd610033a1 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;
                 }
-- 
GitLab