aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-24 18:44:13 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-24 18:44:13 +0000
commit93226db1830807ea4cc260bfc75bcd23488d4803 (patch)
tree1f866576a2143d03a5fbf2e677f031a7358f4652 /functions
parent37d3b9253ab2ed1b9b76df20465b42df283e2552 (diff)
downloadphpicalendar-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.php7
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy