When an event has no DTEND, set the duration to zero. This prevents a recurring...
[citadel.git] / webcit / calendar.c
index 58b00a84ef383cf208196bdf59a438ba2dc0fd4d..84b55b09f33a5bd34176b5950538f7fcc762fdab 100644 (file)
@@ -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,