From 16e048e66515b92da2d4acdd069a792f27304a67 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Nov 2016 19:57:59 +0100 Subject: [PATCH] fix broken recurrence end-dates stalling updates --- calendar/setup/tables_update.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index d445668599..f0b0971b4b 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -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