aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-03-18 21:47:39 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-03-18 21:47:39 +0000
commitc473c5498cdf70ae4a17bca9f7e88296246cf8ef (patch)
tree8daae6d4e192a6c77d7310ec0ddc246d2a376ee7 /functions
parent5b9130b0ad2b940dd272e3f7c5868277e6d6f5e0 (diff)
downloadphpicalendar-c473c5498cdf70ae4a17bca9f7e88296246cf8ef.tar.gz
phpicalendar-c473c5498cdf70ae4a17bca9f7e88296246cf8ef.tar.bz2
phpicalendar-c473c5498cdf70ae4a17bca9f7e88296246cf8ef.zip
fix bug with recur exception on first instance
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index cd31b72..82a6789 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -818,16 +818,13 @@ foreach ($cal_filelist as $cal_key=>$filename) {
}
// This should remove any exdates that were missed.
- // Added for version 0.9.5
+ // 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])){
- $time = $except_times[$key];
+ foreach ($master_array[$value] as $time => $value2){
+ if (!isset($value2[$uid]['event_start'])){
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]);
}
}
}

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