aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-14 05:15:21 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-14 05:15:21 +0000
commitef384f180b9e61d9a3edd7629d8793a4245d18cd (patch)
tree18a3b140efd14d53de39ea39466e9f032a79096b /functions
parent60d3444d69100a5b0e8169237a382c32e44b68cc (diff)
downloadphpicalendar-ef384f180b9e61d9a3edd7629d8793a4245d18cd.tar.gz
phpicalendar-ef384f180b9e61d9a3edd7629d8793a4245d18cd.tar.bz2
phpicalendar-ef384f180b9e61d9a3edd7629d8793a4245d18cd.zip
Added a condition to WEEKLY RRULE to set dates that do not have a BYDAY.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index fdef179..b9c5a6f 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -435,7 +435,11 @@ foreach ($cal_filelist as $filename) {
$recur_data[] = $next_date_time;
break;
case 'WEEKLY':
- if (is_array($byday)) {
+ if (!isset($byday)) {
+ $next_date = date('Ymd', $next_range_time);
+ $next_date_time = strtotime($next_date);
+ $recur_data[] = $next_date_time;
+ } elseif (is_array($byday)) {
// loop through the days on which this event happens
foreach($byday as $day) {
// use my fancy little function to get the date of each day

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