char buf[SIZ];
int organizer_is_me = 0;
int i, j = 0;
+#ifdef DEBUG_UID_CALENDAR
int sequence = 0;
+#endif
char weekday_labels[7][32];
char month_labels[12][32];
long weekstart = 0;
/* Learn the sequence */
p = icalcomponent_get_first_property(vevent, ICAL_SEQUENCE_PROPERTY);
+#ifdef DEBUG_UID_CALENDAR
if (p != NULL) {
sequence = icalproperty_get_sequence(p);
}
+#endif
/* Begin output */
output_headers(1, 1, 2, 0, 0, 0);
wc_printf("<div class=\"fix_scrollbar_bug\">");
+#ifdef DEBUG_UID_CALENDAR
/************************************************************
* Uncomment this to see the UID in calendar events for debugging
+ *************************************************************/
wc_printf("UID == ");
p = icalcomponent_get_first_property(vevent, ICAL_UID_PROPERTY);
if (p != NULL) {
}
wc_printf("<br />\n");
wc_printf("SEQUENCE == %d<br />\n", sequence);
- *************************************************************/
+#endif
wc_printf("<form name=\"EventForm\" method=\"POST\" action=\"save_event\">\n");
wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
if (YESBSTR(buf)) recur.by_day[j++] =
icalrecurrencetype_day_day_of_week(i+1);
}
- recur.by_day[j++] = ICAL_RECURRENCE_ARRAY_MAX;
+ recur.by_day[j] = ICAL_RECURRENCE_ARRAY_MAX;
break;
case ICAL_MONTHLY_RECURRENCE: