From: Florent Bruneau Date: Thu, 29 Nov 2007 21:03:50 +0000 (+0100) Subject: Fix another payment count issue. X-Git-Tag: xorg/0.9.16~197 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d6e94d431f2b516e30a5fe8434040cc0c3348263;p=platal.git Fix another payment count issue. Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index d90b44d..1cc6633 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -546,7 +546,7 @@ class XnetEventsModule extends PLModule $nb = max(intval($nb), 0); XDB::execute("REPLACE INTO groupex.evenements_participants VALUES ({?}, {?}, {?}, {?}, {?}, {?})", - $evt['eid'], $member['uid'], $id, $nb, '', $paid); + $evt['eid'], $member['uid'], $id, $nb, '', $id == 1 ? $paid : 0); } $res = XDB::query("SELECT COUNT(uid) AS cnt, SUM(nb) AS nb