diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 55c90c59ae9..cbe4544105c 100644 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -830,7 +830,7 @@ function scorm_get_all_attempts($scormid, $userid) { function scorm_view_display ($user, $scorm, $action, $cm) { global $CFG, $DB, $PAGE, $OUTPUT, $COURSE; - if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) { + if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) { scorm_parse($scorm, false); } @@ -931,7 +931,7 @@ function scorm_simple_play($scorm, $user, $context, $cmid) { return $result; } - if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) { + if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) { scorm_parse($scorm, false); } $scoes = $DB->get_records_select('scorm_scoes', 'scorm = ? AND '.