Skip to content

Commit

Permalink
MDL-45726 SCORM: Correct check for forcenewattempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciaran Irvine authored and danmarsden committed May 29, 2014
1 parent 8e478c9 commit 005141f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Expand Up @@ -1445,7 +1445,7 @@ function scorm_check_mode($scorm, &$newattempt, &$attempt, $userid, &$mode) {
if ($incomplete === true) {
// The option to start a new attempt should never have been presented. Force false.
$newattempt = 'off';
} else if (($attempt !== '1') && !empty($scorm->forcenewattempt)) {
} else if (!empty($scorm->forcenewattempt)) {
// A new attempt should be forced for already completed attempts.
$newattempt = 'on';
}
Expand Down

0 comments on commit 005141f

Please sign in to comment.