From: Michael J. Rubinsky Date: Sat, 12 Sep 2009 16:20:54 +0000 (-0400) Subject: Need to move this comparison after the loop. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=38efa3467de3866efce797f8b8072afb8b1a28e0;p=horde.git Need to move this comparison after the loop. If we are editing an event that was already accepted, we might hit max_reservations before we get to the event we are editing. --- diff --git a/kronolith/lib/Resource/Single.php b/kronolith/lib/Resource/Single.php index b40e175e8..3814a0881 100644 --- a/kronolith/lib/Resource/Single.php +++ b/kronolith/lib/Resource/Single.php @@ -68,7 +68,7 @@ class Kronolith_Resource_Single extends Kronolith_Resource_Base } } - return true; + return ($conflicts < $this->get('max_reservations')); } /**