Permalink
Browse files

Fixed a missunderstanding coding. Thanks, Mustali

  • Loading branch information...
bobopinna
bobopinna committed Dec 6, 2004
1 parent a9615e7 commit 4abde0607d489de29fdee688b4a22e9a137a899e
Showing with 13 additions and 11 deletions.
  1. +13 −11 mod/scorm/api1_2.php
View
@@ -297,18 +297,20 @@ function LMSFinish (param) {
errorCode = "301";
return "false";
} else {
- Initialized = false;
- errorCode = "0";
+ if (LMSCommit(param)) {
+ Initialized = false;
+ errorCode = "0";
- if (nav.event != "") {
- <?php
- if ($sco != $last) {
- echo "setTimeout('top.changeSco(nav.event);',500);\n";
- } else {
- echo "exitloc = '".$CFG->wwwroot."/mod/scorm/view.php?id=".$cm->id."';\n";
- echo "setTimeout('top.location = exitloc;',500);\n";
- }
- ?>
+ if (nav.event != "") {
+ <?php
+ if ($sco != $last) {
+ echo "setTimeout('top.changeSco(nav.event);',500);\n";
+ } else {
+ echo "exitloc = '".$CFG->wwwroot."/mod/scorm/view.php?id=".$cm->id."';\n";
+ echo "setTimeout('top.location = exitloc;',500);\n";
+ }
+ ?>
+ }
}
return "true";
}

0 comments on commit 4abde06

Please sign in to comment.