From: Art Cancro Date: Tue, 20 Mar 2012 01:18:14 +0000 (-0400) Subject: When an event has no DTEND, set the duration to zero. This prevents a recurring... X-Git-Tag: v8.11~127^2~9 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=ff209ccbc11da5dd7870761a2bf9b0ff615644e0;p=citadel.git When an event has no DTEND, set the duration to zero. This prevents a recurring event with no DTEND from throwing the recurrence calculator into a very long loop. --- diff --git a/webcit/calendar.c b/webcit/calendar.c index 58b00a84e..84b55b09f 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -504,6 +504,9 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u if (!icaltime_is_null_time(dtend)) { /* Need duration for recurrences */ dur = icaltime_subtract(dtend, dtstart); } + else { + dur = icaltime_subtract(dtstart, dtstart); + } /* * Just let libical iterate the recurrence, and keep looping back to the top of this function,