Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b7ed59c32695daf2caa51cd77eaa27f53f31efbc 1 parent 9819795
@danmarsden danmarsden authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/scorm/mod_form.php
View
2  mod/scorm/mod_form.php
@@ -499,7 +499,7 @@ function get_data($slashed = true) {
}
// 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;
Please sign in to comment.
Something went wrong with that request. Please try again.