Skip to content

Commit 3b0cead

Browse files
committed
Fix count limit bug
1 parent c2c74a0 commit 3b0cead

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/model/RepeatingEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private function getEventOccurrencesList($repeatingEvents, $constraint, $countLi
4545
$events = [];
4646
foreach ($repeatingEvents as $event) {
4747
$currentRule = $this->rrule->getRule($event);
48-
if ($countLimit && $currentRule->getCount() > $num) $currentRule->setCount($num);
48+
if ($countLimit && $currentRule->getCount() > $countLimit) $currentRule->setCount($countLimit);
4949

5050
$events = array_merge($events, $this->getOccurrences($constraint, $currentRule, $event));
5151
}

0 commit comments

Comments
 (0)