Merge branch 'master_MDL-45726' of https://github.com/danmarsden/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2014-06-03 02:20:48 +02:00
+1 -1
View File
@@ -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';
}