From: piers Date: Tue, 5 Aug 2008 23:17:24 +0000 (+0000) Subject: MDL-15943 Warning are displayed in a SCORM activity (thanks Dan). X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6aebf2e1405449224198589d4caf62009bd5d233;p=moodle.git MDL-15943 Warning are displayed in a SCORM activity (thanks Dan). --- diff --git a/mod/scorm/player.php b/mod/scorm/player.php index 6f4cbcd060..f602cc2351 100755 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -182,8 +182,9 @@ $orgstr = '&currentorg='.$currentorg; - if (($scorm->hidenav == 0) && ($sco->previd != 0) && ($sco->previous == 0)) { - + if (($scorm->hidenav == 0) && ($sco->previd != 0) && (!isset($sco->previous) || $sco->previous == 0)) { + + // Print the prev LO button $scostr = '&scoid='.$sco->previd; @@ -200,8 +201,8 @@ - if (($scorm->hidenav == 0) && ($sco->nextid != 0) && ($sco->next == 0)) { - + if (($scorm->hidenav == 0) && ($sco->nextid != 0) && (!isset($sco->next) || $sco->next == 0)) { + // Print the next LO button $scostr = '&scoid='.$sco->nextid; @@ -267,8 +268,8 @@
hidenav == 0) && ($sco->previd != 0) && ($sco->previous == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1)) ) { - + if (($scorm->hidenav == 0) && ($sco->previd != 0) && (!isset($sco->previous) || $sco->previous == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1)) ) { + // Print the prev LO button $scostr = '&scoid='.$sco->previd; $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr; @@ -285,8 +286,9 @@ if ($scorm->hidetoc == 2) { echo $result->tocmenu; } - if (($scorm->hidenav == 0) && ($sco->nextid != 0) && ($sco->next == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1))) { - + if (($scorm->hidenav == 0) && ($sco->nextid != 0) && (!isset($sco->next) || $sco->next == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1))) { + + // Print the next LO button $scostr = '&scoid='.$sco->nextid; $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr;