diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 8c36639d972..7b13f0b2b3c 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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'; }