diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-24 18:44:13 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-24 18:44:13 +0000 |
commit | 93226db1830807ea4cc260bfc75bcd23488d4803 (patch) | |
tree | 1f866576a2143d03a5fbf2e677f031a7358f4652 /functions | |
parent | 37d3b9253ab2ed1b9b76df20465b42df283e2552 (diff) | |
download | phpicalendar-93226db1830807ea4cc260bfc75bcd23488d4803.tar.gz phpicalendar-93226db1830807ea4cc260bfc75bcd23488d4803.tar.bz2 phpicalendar-93226db1830807ea4cc260bfc75bcd23488d4803.zip |
Fix for multiplye byday and count.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 645bfd7..4120d91 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -392,6 +392,13 @@ foreach ($cal_filelist as $filename) { $master_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = $wkst; break; case 'END': + + // Modify the COUNT based on BYDAY + if ((is_array($byday)) && (isset($count))) { + $blah = sizeof($byday); + $count = ($count / $blah); + unset ($blah); + } if (!isset($number)) $number = 1; // if $until isn't set yet, we set it to the end of our range we're looking at |