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

This commit is contained in:
Ralf Becker 2009-10-01 19:17:18 +00:00
parent b461e0481c
commit 13e7d5ffbc

View File

@ -429,6 +429,7 @@ class calendar_uiforms extends calendar_ui
break;
}
$msg = lang('Permission denied');
$button = '';
break;
}
@ -438,6 +439,12 @@ class calendar_uiforms extends calendar_ui
$button = '';
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'])
{
$msg = lang('Error: no participants selected !!!');