fixed new unlimited recuring events get not synced (range_end == 0 instead of NULL)

This commit is contained in:
Ralf Becker 2012-09-19 13:37:09 +00:00
parent e56aa30134
commit f3ae8cec81

View File

@ -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']))