Permalink
Browse files

MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for …

…report/patch
  • Loading branch information...
1 parent 93d82f4 commit 082325c271d5e64e4c186a2c8289c6690123a2e7 @danmarsden danmarsden committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/locallib.php
View
@@ -1101,7 +1101,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');

0 comments on commit 082325c

Please sign in to comment.