X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetevents%2Fxnetevents.inc.php;h=214e1a7fc57bb0c9e1cb8fa8e586a704f8822bd2;hb=f981776842674edfa2c654e4248a7b290df98501;hp=1303d9ce47ff07c92de84a761c92dcb4657a7228;hpb=0c50ac76147e7c3bffa90501559bdef63bb689e3;p=platal.git diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index 1303d9c..214e1a7 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -202,7 +202,8 @@ function get_event_participants(&$evt, $item_id, $tri, $limit = '') { function subscribe_lists_event($participate, $uid, $evt) { require_once('user.func.inc.php'); - global $globals,$page; + global $globals; + $page =& Platal::page(); $participant_list = $evt['participant_list']; $absent_list = $evt['absent_list']; @@ -215,7 +216,7 @@ function subscribe_lists_event($participate, $uid, $evt) $res = XDB::query("SELECT email FROM groupex.membres WHERE uid = {?} AND asso_id = {?}", - S::v('uid'), $globals->asso('id')); + $uid, $globals->asso('id')); $email = $res->fetchOneCell(); } @@ -301,7 +302,7 @@ function event_change_shortname(&$page, $eid, $old, $new) $lastid = XDB::insertId(); XDB::execute( - "INSERT INTO virtual_redirect ( + "INSERT IGNORE INTO virtual_redirect ( SELECT {?} AS vid, IF(u.nom IS NULL, m.email, CONCAT(a.alias, {?})) AS redirect FROM groupex.evenements_participants AS ep LEFT JOIN groupex.membres AS m ON (ep.uid = m.uid)