Mercurial > hg > fapweb
changeset 196:ef26d16b836e
Fix maximum attendee / overbooking limit handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 15 Nov 2013 19:15:29 +0200 |
parents | 1e4f530c8310 |
children | 41b24a132af8 |
files | attendees.inc.php |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/attendees.inc.php Sun Nov 10 15:48:23 2013 +0200 +++ b/attendees.inc.php Fri Nov 15 19:15:29 2013 +0200 @@ -36,7 +36,12 @@ $row = 0; foreach ($res as $item) { - $over = $maxAttendeesSoft > 0 && $index > $maxAttendeesSoft; + if ($maxAttendeesHard > 0) + $over = $index > $maxAttendeesHard; + else + if ($maxAttendeesSoft > 0) + $over = $index > $maxAttendeesSoft; + stPrintAttendee($item, $row++, FALSE, $over ? " overbooked" : ""); $index--; }