SCORM MDL-17891 pass back correct state if storeData fails in LMSFinish - thanks to Peter Chamberlin for the report.

This commit is contained in:
Dan Marsden 2009-12-18 10:34:59 +00:00
parent 25d18a5288
commit 67f941099a

View file

@ -201,10 +201,11 @@ function SCORMapi1_2() {
<?php <?php
if (scorm_debugging($scorm)) { if (scorm_debugging($scorm)) {
//echo 'alert("Finished SCORM 1.2");'; //echo 'alert("Finished SCORM 1.2");';
echo 'LogAPICall("LMSResult", param, "", result);';
echo 'LogAPICall("LMSFinish", param, "", 0);'; echo 'LogAPICall("LMSFinish", param, "", 0);';
} }
?> ?>
return "true"; return result;
} else { } else {
errorCode = "301"; errorCode = "301";
} }