From 6977d5253b97d9661b82268ab9cdde95ce6c853a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 25 Oct 2012 17:12:52 +1300 Subject: [PATCH] MDL-36168 SCORM: fix reset of course completion settings. --- mod/scorm/mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/mod_form.php b/mod/scorm/mod_form.php index 3d620d0e6b5..0798bc4adb0 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -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; -- 2.43.0