Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
XDB::execute('INSERT IGNORE INTO group_members (uid, asso_id)
SELECT {?}, id
FROM groups
- WHERE diminutif = {?}'
+ WHERE diminutif = {?}',
$user->id(), $user->profile()->yearPromo());
$mmlist = new MMList($user);
$mmlist->subscribe('promo' . $user->profile()->yearPromo());
$ref = $matches[1];
$res = XDB::query('SELECT mail, text, confirmation
FROM payments
- WHERE id={?}", $ref);
+ WHERE id={?}', $ref);
if ($res->numRows() != 1) {
cb_erreur("référence de commande inconnue");
}