aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-27 08:41:50 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-27 08:41:50 +0000
commit52affff02436675e313d80aee98459df6cd11fd1 (patch)
tree8c7af0054a04c5cdc03e27e6102bb9e943955225 /functions
parent1a966a889f41c71b7bdcbe332169b42d1f3bb350 (diff)
downloadphpicalendar-52affff02436675e313d80aee98459df6cd11fd1.tar.gz
phpicalendar-52affff02436675e313d80aee98459df6cd11fd1.tar.bz2
phpicalendar-52affff02436675e313d80aee98459df6cd11fd1.zip
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.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index fe77dd9..6c4369a 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -226,8 +226,9 @@ foreach ($cal_filelist as $filename) {
} else {
$end = strtotime('+1 day', $start);
}
- if (($end > $mArray_begin) && ($end < $mArray_end)) {
- while ($start != $end) {
+ // 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 );
$start = strtotime('+1 day', $start);

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