From 3195a11191b486131d4de216d2bb22861192932a Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 22 Apr 2011 16:18:03 +0200 Subject: [PATCH] Do not display deceased user in promotion marketing. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/marketing.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/marketing.php b/modules/marketing.php index 300d6f7..e6d3aff 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -261,8 +261,9 @@ class MarketingModule extends PLModule $page->assign('promo', $promo); $uf = new UserFilter(new PFC_And(new UFC_Promo('=', UserFilter::DISPLAY, $promo), - new PFC_Not(new UFC_Registered())), - array(new UFO_Name(Profile::LASTNAME), new UFO_Name(Profile::FIRSTNAME))); + new PFC_Not(new UFC_Registered()), + new PFC_Not(new UFC_Dead())), + array(new UFO_Name(Profile::LASTNAME), new UFO_Name(Profile::FIRSTNAME))); $users = $uf->getUsers(); $page->assign('nonins', $users); } -- 2.1.4