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