aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-08-12 02:41:26 +0000
committerChad Little <clittle@users.sourceforge.net>2004-08-12 02:41:26 +0000
commitdf23c80a63a92a907f38d90c40f556076b0b0c56 (patch)
treeee7dc46943894f329e3dc0250b213f285ac0e2d0 /functions
parentca2d5ebf3e4f0adc61cb7a546b46241e2fa4fbe5 (diff)
downloadphpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.tar.gz
phpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.tar.bz2
phpicalendar-df23c80a63a92a907f38d90c40f556076b0b0c56.zip
Ximian bitches.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php9
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);

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