Skip to content

Commit

Permalink
Fix bug introduced in recent commits
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Sep 4, 2023
1 parent 46e9935 commit 3ac44ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/functions_ical.inc
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ function get_repeat_rule(string $rrule, int $start_time, array &$errors)
if (!isset($rules['BYDAY']))
{
$repeat_rule->setMonthlyAbsolute((int)$rules['BYMONTHDAY']);
$repeat_rule->setMonthlyType(RepeatRule::MONTHLY_ABSOLUTE);
}
else
{
Expand Down Expand Up @@ -442,6 +443,7 @@ function get_repeat_rule(string $rrule, int $start_time, array &$errors)
else
{
$repeat_rule->setMonthlyRelative($byday_day);
$repeat_rule->setMonthlyType(RepeatRule::MONTHLY_RELATIVE);
}
}
}
Expand Down

0 comments on commit 3ac44ba

Please sign in to comment.