# HG changeset patch # User Matti Hamalainen # Date 1384535729 -7200 # Node ID ef26d16b836e896c9327eb398581aca73f7a92f8 # Parent 1e4f530c83102388ff093c6a013b6dbf0527207d Fix maximum attendee / overbooking limit handling. diff -r 1e4f530c8310 -r ef26d16b836e attendees.inc.php --- 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--; }