fix broken recurrence end-dates stalling updates

This commit is contained in:
Ralf Becker 2016-11-02 19:57:59 +01:00
parent 035c544529
commit ad9d21da5e

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'];
$rrule = calendar_rrule::event2rrule($event, false);
try {
$rrule = calendar_rrule::event2rrule($event, false);
}
catch (\Exception $e) {
_egw_log_exception($e);
continue;
}
$rrule->rewind();
$enddate = $rrule->current();
do