From d6e94d431f2b516e30a5fe8434040cc0c3348263 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 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 -- 2.1.4