From: Stéphane Jacob Date: Sun, 13 Dec 2009 17:22:54 +0000 (+0100) Subject: Prevents absents to be in the participants-non-paye ML. X-Git-Tag: xorg/1.0.0~249^2~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1cf7d38b6105c4b5dd7c4f2d84af6615f49151e9;p=platal.git Prevents absents to be in the participants-non-paye ML. Signed-off-by: Stéphane Jacob --- 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); + } } } // }}}