Skip to content

Commit

Permalink
MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for …
Browse files Browse the repository at this point in the history
…report/patch
  • Loading branch information
danmarsden committed Jul 13, 2011
1 parent ecb8829 commit 7b6f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/locallib.php
Expand Up @@ -1109,7 +1109,7 @@ function scorm_get_attempt_count($userid, $scorm, $attempts_only=false) {
if ($scorm->grademethod == GRADESCOES) {
$element = 'cmi.core.lesson_status';
}
if ($scorm->version == 'scorm1_3') {
if ($scorm->version == 'scorm_13' || $scorm->version == 'SCORM_1.3') {
$element = 'cmi.score.raw';
}
$attempts = $DB->get_records_select('scorm_scoes_track', "element=? AND userid=? AND scormid=?", array($element, $userid, $scorm->id), 'attempt', 'DISTINCT attempt AS attemptnumber');
Expand Down

0 comments on commit 7b6f5c8

Please sign in to comment.