summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
976c685)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
$nb = max(intval($nb), 0);
XDB::execute("REPLACE INTO groupex.evenements_participants
VALUES ({?}, {?}, {?}, {?}, {?}, {?})",
$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
}
$res = XDB::query("SELECT COUNT(uid) AS cnt, SUM(nb) AS nb