Permalink
Browse files

Fixed a problem with previous sco button

  • Loading branch information...
1 parent 1cc2485 commit 6a7aa3f9c0dd06eb20dc6a55122753f42b9c1f7e bobopinna committed Jun 27, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/lib.php
View
2 mod/scorm/lib.php
@@ -1115,7 +1115,7 @@ function scorm_display_structure($scorm,$liststyle,$currentorg='',$scoid='',$mod
$shownext = $sco->next;
$showprev = $sco->previous;
}
- if (($nextid == 0) && (scorm_count_launchable($scorm->id,$currentorg) > 1)) {
+ if (($nextid == 0) && (scorm_count_launchable($scorm->id,$currentorg) > 1) && ( $nextsco!==false)) {
$previd = $sco->id;
}
echo "&nbsp;$startbold<a href='javascript:playSCO(".$sco->id.");'>$sco->title</a> $score$endbold</li>\n";

0 comments on commit 6a7aa3f

Please sign in to comment.