diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-21 15:29:06 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-21 15:29:06 +0000 |
commit | f151681be71ef6d144812019a643d7886a1a6c24 (patch) | |
tree | 7baa634f73c7f1a23018b5b8371d1669e146cb11 /ical_parser.php | |
parent | 349e406873400934d4b48bf523d62c0c66037a0e (diff) | |
download | phpicalendar-f151681be71ef6d144812019a643d7886a1a6c24.tar.gz phpicalendar-f151681be71ef6d144812019a643d7886a1a6c24.tar.bz2 phpicalendar-f151681be71ef6d144812019a643d7886a1a6c24.zip |
Added check for empty calendar.
Diffstat (limited to 'ical_parser.php')
-rw-r--r-- | ical_parser.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ical_parser.php b/ical_parser.php index 5dea224..bb5fd8d 100644 --- a/ical_parser.php +++ b/ical_parser.php @@ -204,7 +204,7 @@ foreach($contents as $line) { if ($allday_start != "") { // Since we hit the end of the RRULE array, lets do something. - // Below handles yearly all day events only. + // Below handles yearly, montly, weekly, daily all-day events. // $parse_to_year is the year we are parsing, January 10th, next year. // $start_of_vevent is the date the recurring event starts. // $end_of_vevent is the date the recurring event stops. @@ -217,7 +217,6 @@ foreach($contents as $line) { if ($start_of_vevent < $parse_to_year) { do { - // This steps through each day of a multiple all-day event and adds to master array // Every all day event should pass through here at least once. $start = $start_of_vevent; @@ -227,13 +226,10 @@ foreach($contents as $line) { $master_array[($start_date)][("0001")]["event_text"][] = "$summary"; $start = ($start + (24*3600)); } while ($start < $end); - $start_of_vevent = DateAdd ($interval, $number, $start_of_vevent); $end_of_vevent = DateAdd ($interval, $number, $end_of_vevent); - } while ($start_of_vevent < $parse_to_year); } - //echo "$interval - $number - $date - $recur_year - $this_year"; // Let's take care of recurring events that are not all day events // Nothing is here yet, Jared seems to way to play, so I'll let him do these... muahahahaha. |