MDL-10048 General calendar view enhancements as per spec with regard to event highlighting

This commit is contained in:
dwoolhead 2007-06-13 14:30:42 +00:00
parent 10b1d59829
commit edad8bec3c

View File

@ -570,9 +570,11 @@ function validate_form(&$form, &$err) {
if(empty($form->name)) {
$err['name'] = get_string('errornoeventname', 'calendar');
}
/* Allow events without a description
if(empty($form->description)) {
$err['description'] = get_string('errornodescription', 'calendar');
}
*/
if(!checkdate($form->startmon, $form->startday, $form->startyr)) {
$err['timestart'] = get_string('errorinvaliddate', 'calendar');
}