mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-26894: merged from SCORM 1.2 (scorm_12lib.php) after an XDebug audit session
This commit is contained in:
parent
56babbcb76
commit
36c0108a2f
@ -313,7 +313,7 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco
|
||||
}
|
||||
|
||||
if ($play) {
|
||||
// it is possible that scoid is still not set, in this case we dont want an empty object
|
||||
// it is possible that $scoid is still not set, in this case we don't want an empty object
|
||||
if ($scoid) {
|
||||
$sco = scorm_get_sco($scoid);
|
||||
}
|
||||
|
@ -207,7 +207,10 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco
|
||||
}
|
||||
|
||||
if ($play) {
|
||||
$sco = $DB->get_record('scorm_scoes', array('id'=>$scoid));
|
||||
// it is possible that $scoid is still not set, in this case we don't want an empty object
|
||||
if ($scoid) {
|
||||
$sco = scorm_get_sco($scoid);
|
||||
}
|
||||
$sco->previd = $previd;
|
||||
$sco->nextid = $nextid;
|
||||
$result->sco = $sco;
|
||||
|
Loading…
x
Reference in New Issue
Block a user