Browse files

SCORM MDL-26942 - get first scoid if not set

  • Loading branch information...
1 parent 8cb7096 commit 8a4561accc971f590a956b27b2e850c7cba35434 @danmarsden danmarsden committed Jul 2, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/locallib.php
View
3 mod/scorm/locallib.php
@@ -1452,6 +1452,9 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco
}
if ($play) {
+ if (empty($scoid)) {
+ $scoid = reset($scoes)->id;
+ }
$sco = scorm_get_sco($scoid);
$sco->previd = $previd;
$sco->nextid = $nextid;

0 comments on commit 8a4561a

Please sign in to comment.