Fixes query in xnet events.
authorStéphane Jacob <sj@m4x.org>
Mon, 28 Mar 2011 07:38:31 +0000 (09:38 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 28 Mar 2011 07:38:31 +0000 (09:38 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetevents/xnetevents.inc.php

index f329ad1..dc17ac3 100644 (file)
@@ -287,7 +287,7 @@ function event_change_shortname($page, $eid, $old, $new)
         foreach (array($globals->xnet->participant_list, $globals->xnet->payed_list, $globals->xnet->unpayed_list) as $suffix) {
             $uids = XDB::fetchColumn('SELECT  uid
                                         FROM  group_event_participants
-                                       WHERE  eid = {?} AND ' . $where,
+                                       WHERE  eid = {?} AND ' . $where[$suffix],
                                      $eid);
             $users = User::getBulkUsersWithUIDs($uids, null, null, false);
             foreach ($users as $user) {