From 7d820356800b15474acaa36b024e84e893c08546 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 20 Sep 2003 19:43:15 +0000 Subject: Fix for interval = 1 --- functions/ical_parser.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 87d66ab..ef49844 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -409,6 +409,9 @@ foreach ($cal_filelist as $filename) { // initialze the time we will increment $next_range_time = $start_range_time_tmp; + // FIXME: This is a hack to fix repetitions with $interval > 1 + if ($count > 1 && $number > 1) $count = 1 + ($count - 1) * $number; + $count_to = 0; // start at the $start_range and go until we hit the end of our range. while (($next_range_time >= $start_range_time_tmp) && ($next_range_time <= $end_range_time_tmp) && ($count_to != $count)) { -- cgit v1.2.3