Prevents absents to be in the participants-non-paye ML.
authorStéphane Jacob <sj@m4x.org>
Sun, 13 Dec 2009 17:22:54 +0000 (18:22 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 13 Dec 2009 17:46:02 +0000 (18:46 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetevents/xnetevents.inc.php

index d2725d4..83628f4 100644 (file)
@@ -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);
+        }
     }
 }
 // }}}