diff --git a/mod_form.php b/mod_form.php index 773956c0..48250c18 100644 --- a/mod_form.php +++ b/mod_form.php @@ -1011,7 +1011,7 @@ public function validation($data, $files) { // Only check for scheduled meetings. if (empty($data['recurring'])) { // Make sure start date is in the future. - if ($data['start_time'] < time()) { + if ($data['start_time'] < time() && $data['meeting_id'] < 0) { $errors['start_time'] = get_string('err_start_time_past', 'zoom'); } @@ -1023,7 +1023,7 @@ public function validation($data, $files) { } } else if ($data['recurring'] == 1 && $data['recurrence_type'] != ZOOM_RECURRINGTYPE_NOTIME) { // Make sure start date time (first potential date of next meeting) is in the future. - if ($data['start_time'] < time()) { + if ($data['start_time'] < time() && $data['meeting_id'] < 0) { $errors['start_time'] = get_string('err_start_time_past_recurring', 'zoom'); }