Xnet only users now are site users and thus their emails are fetched the same way...
authorStéphane Jacob <sj@m4x.org>
Sun, 27 Jun 2010 13:26:48 +0000 (15:26 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 27 Jun 2010 13:26:59 +0000 (15:26 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetevents/xnetevents.inc.php

index f3e012d..93f011c 100644 (file)
@@ -184,15 +184,7 @@ function subscribe_lists_event($participate, $uid, $evt, $paid, $payment = null)
     $payed_list        = $evt['payed_list'];
 
     $user = User::getSilent($uid);
-    if ($user) {
-        $email = $user->forlifeEmail();
-    } else {
-        $res = XDB::query("SELECT  email
-                             FROM  group_members
-                            WHERE  uid = {?} AND asso_id = {?}",
-                          $uid, $globals->asso('id'));
-        $email = $res->fetchOneCell();
-    }
+    $email = $user->forlifeEmail();
 
     function subscribe($list, $email)
     {