From 43c5373b4db74a2392f0603160280e393da47d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Fri, 27 Nov 2009 06:46:32 +0000 Subject: [PATCH] Fix event recur_interval mismatch issue --- calendar/inc/class.calendar_so.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 2ad74e72f7..02982082dd 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -563,6 +563,12 @@ ORDER BY cal_user_type, cal_usre_id unset($event['id']); $set_recurrences = !$cal_id && $event['recur_type'] != MCAL_RECUR_NONE; + if ($event['recur_type'] != MCAL_RECUR_NONE && + !(int)$event['recur_interval']) + { + $event['recur_interval'] = 1; + } + // add colum prefix 'cal_' if there's not already a 'recur_' prefix foreach($event as $col => $val) {