Skip to content

Commit

Permalink
MDL-36853 SCORM: get first valid sco instead of array of scos - thank…
Browse files Browse the repository at this point in the history
…s to Jamie Smith for the fix - fixes PHP warnings when returning to an existing attempt.
  • Loading branch information
danmarsden committed Jan 11, 2013
1 parent d63a406 commit 840193d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/locallib.php
Expand Up @@ -1772,7 +1772,7 @@ function scorm_get_toc($user, $scorm, $cmid, $toclink=TOCJSLINK, $currentorg='',
}

if (empty($scoid)) {
$result->sco = $scoes['scoes'][0]->children;
$result->sco = $scoes['scoes'][0]->children[0];
} else {
$result->sco = scorm_get_sco($scoid);
}
Expand Down

0 comments on commit 840193d

Please sign in to comment.