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.15~9 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=df54fd62afc205dc5db0c5502c88023bb3abde5e;p=platal.git Fix another payment count issue. Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 674d874..6cf3828 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -545,7 +545,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