Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19449/phpicalendar/functions
Modified Files:
ical_parser.php
Log Message:
fix bug with recur exception on first instance
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.204
retrieving revision 1.205
diff -C2 -d -r1.204 -r1.205
*** ical_parser.php 18 Mar 2006 01:27:30 -0000 1.204
--- ical_parser.php 18 Mar 2006 21:47:39 -0000 1.205
***************
*** 819,832 ****
// This should remove any exdates that were missed.
! // Added for version 0.9.5
if (is_array($except_dates)) {
foreach ($except_dates as $key => $value) {
if (isset ($master_array[$value])){
! $time = $except_times[$key];
unset($master_array[$value][$time][$uid]);
- if (count($master_array[$value][$time]) < 1) {
- unset($master_array[$value][$time]);
- if (count($master_array[$value]) < 1) {
- unset($master_array[$value]);
}
}
--- 819,829 ----
// This should remove any exdates that were missed.
! // Added for version 0.9.5 modified in 2.22 remove anything that doesn't have an event_start
if (is_array($except_dates)) {
foreach ($except_dates as $key => $value) {
if (isset ($master_array[$value])){
! foreach ($master_array[$value] as $time => $value2){
! if (!isset($value2[$uid]['event_start'])){
unset($master_array[$value][$time][$uid]);
}
}
|