From 1cf7d38b6105c4b5dd7c4f2d84af6615f49151e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 13 Dec 2009 18:22:54 +0100 Subject: [PATCH] Prevents absents to be in the participants-non-paye ML. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/xnetevents/xnetevents.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index d2725d4..83628f4 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -263,7 +263,9 @@ function subscribe_lists_event($participate, $uid, $evt, $paid, $payment = null) subscribe($payed_list, $email); } else { unsubscribe($payed_list, $email); - subscribe($unpayed_list, $email); + if (!is_null($participate)) { + subscribe($unpayed_list, $email); + } } } // }}} -- 2.1.4