From 4abde0607d489de29fdee688b4a22e9a137a899e Mon Sep 17 00:00:00 2001 From: bobopinna Date: Mon, 6 Dec 2004 08:52:00 +0000 Subject: [PATCH] Fixed a missunderstanding coding. Thanks, Mustali --- mod/scorm/api1_2.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/mod/scorm/api1_2.php b/mod/scorm/api1_2.php index f08cbaf342c..ac1cd7132b0 100644 --- a/mod/scorm/api1_2.php +++ b/mod/scorm/api1_2.php @@ -297,18 +297,20 @@ function SCORMapi() { errorCode = "301"; return "false"; } else { - Initialized = false; - errorCode = "0"; + if (LMSCommit(param)) { + Initialized = false; + errorCode = "0"; - if (nav.event != "") { - wwwroot."/mod/scorm/view.php?id=".$cm->id."';\n"; - echo "setTimeout('top.location = exitloc;',500);\n"; - } - ?> + if (nav.event != "") { + wwwroot."/mod/scorm/view.php?id=".$cm->id."';\n"; + echo "setTimeout('top.location = exitloc;',500);\n"; + } + ?> + } } return "true"; }