Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv16070/functions
Modified Files:
ical_parser.php
Log Message:
Changed ical_parser to write events that start and span past mArray's end
point, but writes them only up to the end point, and not past.
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.136
retrieving revision 1.137
diff -C2 -d -r1.136 -r1.137
*** ical_parser.php 25 Nov 2003 22:13:56 -0000 1.136
--- ical_parser.php 27 Nov 2003 08:41:50 -0000 1.137
***************
*** 227,232 ****
$end = strtotime('+1 day', $start);
}
! if (($end > $mArray_begin) && ($end < $mArray_end)) {
! while ($start != $end) {
$start_date2 = date('Ymd', $start);
$master_array[($start_date2)][('-1')][$uid]= array ('event_text' => $summary, 'description' => $description, 'calnumber' => $calnumber, 'calname' => $actual_calname );
--- 227,233 ----
$end = strtotime('+1 day', $start);
}
! // Changed for 1.0, basically write out the entire event if it starts while the array is written.
! if ($start < $mArray_end) {
! while (($start != $end) && ($start < $mArray_end)) {
$start_date2 = date('Ymd', $start);
$master_array[($start_date2)][('-1')][$uid]= array ('event_text' => $summary, 'description' => $description, 'calnumber' => $calnumber, 'calname' => $actual_calname );
|