From 6848fb7e4f2bfca09717cc8a18de5f90afea2d9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 16 Nov 2010 12:18:09 +0100 Subject: [PATCH] Finally fix "has paid" lists (Closes #1314) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Page used for "return" from cyberpaiement does not asso_id... Signed-off-by: Raphaël Barrois --- modules/payment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/payment.php b/modules/payment.php index 8f928a5..06ddd9c 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -334,13 +334,13 @@ class PaymentModule extends PLModule echo "Paiement stored.\n"; // We check if it is an Xnet payment and then update the related ML. - $res = XDB::query('SELECT eid + $res = XDB::query('SELECT eid, asso_id FROM group_events WHERE paiement_id = {?}', $ref); if ($res->numRows() == 1) { - $eid = $res->fetchOneCell(); + list($eid, $asso_id) = $res->fetchOneRow(); require_once dirname(__FILE__) . '/xnetevents/xnetevents.inc.php'; - $evt = get_event_detail($eid); + $evt = get_event_detail($eid, false, $asso_id); subscribe_lists_event($user->id(), $evt, 1, $amount, true); } -- 2.1.4