fix broken recurrence end-dates stalling updates

This commit is contained in:
Ralf Becker 2016-11-02 19:57:59 +01:00
parent fe4d00551a
commit 16e048e665

View File

@ -2352,7 +2352,13 @@ WHERE range_end IS NOT NULL", __LINE__, __FILE__, 0, -1, false, Api\Db::FETCH_AS
{
$event = Api\Db::strip_array_keys($event, 'cal_');
$event['recur_enddate'] = $event['range_end'];
try {
$rrule = calendar_rrule::event2rrule($event, false);
}
catch (\Exception $e) {
_egw_log_exception($e);
continue;
}
$rrule->rewind();
$enddate = $rrule->current();
do