|
|
@ -207,7 +207,7 @@ class mod_attendance_update_form extends moodleform { |
|
|
|
$errors['sestime'] = get_string('invalidsessionendtime', 'attendance'); |
|
|
|
} |
|
|
|
|
|
|
|
if ($data['automark'] == ATTENDANCE_AUTOMARK_CLOSE) { |
|
|
|
if (!empty($data['studentscanmark']) && $data['automark'] == ATTENDANCE_AUTOMARK_CLOSE) { |
|
|
|
$cm = $this->_customdata['cm']; |
|
|
|
// Check that the selected statusset has a status to use when unmarked. |
|
|
|
$sql = 'SELECT id |
|
|
|