Skip to content
Browse files

AICC MDL-21332 set scoid if not already set - thanks to Matteo Scaram…

…uccia for report and fix. merged from HEAD
  • Loading branch information...
1 parent 05d9f02 commit 278fc21a29a639a7a982988db09f12141858587a @danmarsden danmarsden committed Mar 12, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/datamodels/aicclib.php
View
3 mod/scorm/datamodels/aicclib.php
@@ -344,6 +344,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
$usertracks = array();
foreach ($scoes as $sco) {
if (!empty($sco->launch)) {
+ if (empty($scoid)) {
+ $scoid = $sco->id;
+ }
if ($usertrack = scorm_get_tracks($sco->id,$user->id,$attempt)) {
if ($usertrack->status == '') {
$usertrack->status = 'notattempted';

0 comments on commit 278fc21

Please sign in to comment.
Something went wrong with that request. Please try again.