Fixes sql query in payment.
authorStéphane Jacob <sj@m4x.org>
Mon, 13 Dec 2010 19:50:15 +0000 (20:50 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 13 Dec 2010 19:50:15 +0000 (20:50 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment.php

index 06ddd9c..39f8193 100644 (file)
@@ -483,7 +483,7 @@ class PaymentModule extends PLModule
             }
             $res = XDB::query("SELECT  1
                                  FROM  group_events AS e
-                           INNER JOIN  group_event_participants AS ep ON (ep.eid = e.eid AND uid = {?})
+                           INNER JOIN  group_event_participants AS ep ON (ep.eid = e.eid AND e.uid = {?})
                                 WHERE  e.paiement_id = {?} AND e.asso_id = {?}",
                               S::i('uid'), $pid, $globals->asso('id'));
             if ($res->numRows() == 0) {