|
@ -294,11 +294,11 @@ function construct_sessions_data_for_add($formdata) { |
|
|
$sess->description = $formdata->sdescription['text']; |
|
|
$sess->description = $formdata->sdescription['text']; |
|
|
$sess->descriptionformat = $formdata->sdescription['format']; |
|
|
$sess->descriptionformat = $formdata->sdescription['format']; |
|
|
$sess->timemodified = $now; |
|
|
$sess->timemodified = $now; |
|
|
if (isset($formdata->studentscanmark)) { // Students will be able to mark their own attendance. |
|
|
$sess->studentscanmark = 0; |
|
|
|
|
|
$sess->studentpassword = ''; |
|
|
|
|
|
if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) { // Students will be able to mark their own attendance. |
|
|
$sess->studentscanmark = 1; |
|
|
$sess->studentscanmark = 1; |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
} else { |
|
|
|
|
|
$sess->studentpassword = ''; |
|
|
|
|
|
} |
|
|
} |
|
|
$sess->statusset = $formdata->statusset; |
|
|
$sess->statusset = $formdata->statusset; |
|
|
|
|
|
|
|
|