diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-08-12 02:41:26 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-08-12 02:41:26 +0000 |
commit | df23c80a63a92a907f38d90c40f556076b0b0c56 (patch) | |
tree | ee7dc46943894f329e3dc0250b213f285ac0e2d0 /functions | |
parent | ca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5 (diff) | |
download | phpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.tar.gz phpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.tar.bz2 phpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.zip |
Ximian bitches.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 44080f5..48b61da 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -1009,7 +1009,12 @@ foreach ($cal_filelist as $filename) { $exdata = str_replace('Z', '', $exdata); preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $exdata, $regs); $except_dates[] = $regs[1] . $regs[2] . $regs[3]; - $except_times[] = $regs[4] . $regs[5]; + // Added for Evolution, since they dont think they need to tell me which time to exclude. + if (($regs[4] == '') && ($start_time != '')) { + $except_times[] = $start_time; + } else { + $except_times[] = $regs[4] . $regs[5]; + } } break; @@ -1164,7 +1169,7 @@ if ($parse_file) { //If you want to see the values in the arrays, uncomment below. //print '<pre>'; -//print_r($master_array['-4']); +//print_r($master_array); //print_r($overlap_array); //print_r($day_array); //print_r($rrule_array); |