mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for report/patch
This commit is contained in:
parent
ecb8829273
commit
7b6f5c8d1e
1 changed files with 1 additions and 1 deletions
|
@ -1109,7 +1109,7 @@ function scorm_get_attempt_count($userid, $scorm, $attempts_only=false) {
|
||||||
if ($scorm->grademethod == GRADESCOES) {
|
if ($scorm->grademethod == GRADESCOES) {
|
||||||
$element = 'cmi.core.lesson_status';
|
$element = 'cmi.core.lesson_status';
|
||||||
}
|
}
|
||||||
if ($scorm->version == 'scorm1_3') {
|
if ($scorm->version == 'scorm_13' || $scorm->version == 'SCORM_1.3') {
|
||||||
$element = 'cmi.score.raw';
|
$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');
|
$attempts = $DB->get_records_select('scorm_scoes_track', "element=? AND userid=? AND scormid=?", array($element, $userid, $scorm->id), 'attempt', 'DISTINCT attempt AS attemptnumber');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue