From f3ae8cec8145f8777cfcfe42e2316ce068a49ab5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 Sep 2012 13:37:09 +0000 Subject: [PATCH] fixed new unlimited recuring events get not synced (range_end == 0 instead of NULL) --- calendar/inc/class.calendar_so.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index e861b8ec87..9e62b41528 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1051,7 +1051,8 @@ ORDER BY cal_user_type, cal_usre_id } // set range_start/_end $event['range_start'] = $event['cal_start']; - $event['range_end'] = $event['recur_type'] == MCAL_RECUR_NONE ? $event['cal_end'] : $event['recur_enddate']; + $event['range_end'] = $event['recur_type'] == MCAL_RECUR_NONE ? $event['cal_end'] : + ($event['recur_enddate'] ? $event['recur_enddate'] : null); // ensure that we find mathing entries later on if (!is_array($event['cal_category']))