Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv2655/functions
Modified Files:
ical_parser.php
Log Message:
Added a condition to WEEKLY RRULE to set dates that do not have a BYDAY.
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** ical_parser.php 14 Nov 2003 04:59:15 -0000 1.115
--- ical_parser.php 14 Nov 2003 05:15:21 -0000 1.116
***************
*** 436,440 ****
break;
case 'WEEKLY':
! if (is_array($byday)) {
// loop through the days on which this event happens
foreach($byday as $day) {
--- 436,444 ----
break;
case 'WEEKLY':
! 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) {
|