Fix event recur_interval mismatch issue

This commit is contained in:
Jörg Lehrke 2009-11-27 06:46:32 +00:00
parent 0f77f7e802
commit 43c5373b4d

View File

@ -563,6 +563,12 @@ ORDER BY cal_user_type, cal_usre_id
unset($event['id']); unset($event['id']);
$set_recurrences = !$cal_id && $event['recur_type'] != MCAL_RECUR_NONE; $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 // add colum prefix 'cal_' if there's not already a 'recur_' prefix
foreach($event as $col => $val) foreach($event as $col => $val)
{ {