projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d77317
)
Xnet only users now are site users and thus their emails are fetched the same way...
author
Stéphane Jacob
<sj@m4x.org>
Sun, 27 Jun 2010 13:26:48 +0000
(15:26 +0200)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/modules/xnetevents/xnetevents.inc.php
b/modules/xnetevents/xnetevents.inc.php
index
f3e012d
..
93f011c
100644
(file)
--- a/
modules/xnetevents/xnetevents.inc.php
+++ b/
modules/xnetevents/xnetevents.inc.php
@@
-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)
{