From df54fd62afc205dc5db0c5502c88023bb3abde5e Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 29 Nov 2007 22:03:50 +0100 Subject: [PATCH] Fix another payment count issue. Signed-off-by: Florent Bruneau --- modules/xnetevents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4