MDL-36168 SCORM: fix reset of course completion settings.

This commit is contained in:
Dan Marsden 2012-10-25 17:12:52 +13:00
parent 7e8ae12a7a
commit 6977d5253b

View File

@ -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;