"added missing check if recur-endtime is before start, thanks to Hans-Juergen"

This commit is contained in:
Ralf Becker 2009-10-01 19:16:38 +00:00
parent 3312bcd595
commit d77f7998af

View File

@ -450,6 +450,7 @@ class calendar_uiforms extends calendar_ui
break; break;
} }
$msg = lang('Permission denied'); $msg = lang('Permission denied');
$button = '';
break; break;
} }
@ -459,6 +460,12 @@ class calendar_uiforms extends calendar_ui
$button = ''; $button = '';
break; break;
} }
if ($event['recur_type'] != MCAL_RECUR_NONE && $event['recur_enddate'] && $event['start'] > $event['recur_enddate'])
{
$msg = lang('repetition').': '.lang('Error: Starttime has to be before the endtime !!!');
$button = '';
break;
}
if (!$event['participants']) if (!$event['participants'])
{ {
$msg = lang('Error: no participants selected !!!'); $msg = lang('Error: no participants selected !!!');