mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-36168 SCORM: fix reset of course completion settings.
This commit is contained in:
parent
7e8ae12a7a
commit
6977d5253b
@ -499,7 +499,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
}
|
||||
|
||||
// Turn off completion settings if the checkboxes aren't ticked
|
||||
$autocompletion = !empty($data->completion) && $data->completion == COMPLETION_TRACKING_AUTOMATIC;
|
||||
$autocompletion = isset($data->completion) && $data->completion == COMPLETION_TRACKING_AUTOMATIC;
|
||||
|
||||
if (isset($data->completionstatusrequired) && is_array($data->completionstatusrequired)) {
|
||||
$total = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user