The check for setting event dates before the course start date was written

incorrectly. What was I thinking?
This commit is contained in:
defacer
2004-04-01 10:59:46 +00:00
parent a36166d327
commit 556596510a
+1 -1
View File
@@ -449,7 +449,7 @@ function validate_form(&$form, &$err) {
if($course === false) {
error('Event belongs to invalid course');
}
else if($form->timestart < $form->startdate) {
else if($form->timestart < $course->startdate) {
$err['timestart'] = get_string('errorbeforecoursestart', 'calendar');
}
}