diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-09-20 19:43:15 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-09-20 19:43:15 +0000 |
commit | 7d820356800b15474acaa36b024e84e893c08546 (patch) | |
tree | e3f31b0407b0d22e982644da50a7dec0626eaf6e /functions | |
parent | fae38172f95e53853037beddd7998af0c676fc3d (diff) | |
download | phpicalendar-7d820356800b15474acaa36b024e84e893c08546.tar.gz phpicalendar-7d820356800b15474acaa36b024e84e893c08546.tar.bz2 phpicalendar-7d820356800b15474acaa36b024e84e893c08546.zip |
Fix for interval = 1
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 3 |
1 files changed, 3 insertions, 0 deletions
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)) { |