Permalink
Browse files

Fixed next sco search

  • Loading branch information...
1 parent 4478a12 commit 699927cf78e884d2a3ac8df61b56d3a400018e95 bobopinna committed Aug 30, 2005
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/scorm/lib.php
View
@@ -1381,11 +1381,6 @@ function scorm_get_toc($scorm,$liststyle,$currentorg='',$scoid='',$mode='normal'
if (empty($sco->title)) {
$sco->title = $sco->identifier;
}
- if (($nextsco !== false) && ($nextid == 0) && ($findnext)) {
- if (!empty($nextsco->launch)) {
- $nextid = $nextsco->id;
- }
- }
if (!empty($sco->launch)) {
$startbold = '';
$endbold = '';
@@ -1444,6 +1439,11 @@ function scorm_get_toc($scorm,$liststyle,$currentorg='',$scoid='',$mode='normal'
} else {
$result->toc .= "&nbsp;$sco->title</li>\n";
}
+ if (($nextsco !== false) && ($nextid == 0) && ($findnext)) {
+ if (!empty($nextsco->launch)) {
+ $nextid = $nextsco->id;
+ }
+ }
}
for ($i=0;$i<$level;$i++) {
$result->toc .= "\t\t</ul></li>\n";

0 comments on commit 699927c

Please sign in to comment.