SCORM MDL-25891 typo causing general exception for some SCORM objects - thanks to...
authorDan Marsden <dan@catalyst.net.nz>
Sun, 9 Jan 2011 20:24:16 +0000 (09:24 +1300)
committerDan Marsden <dan@catalyst.net.nz>
Sun, 9 Jan 2011 20:24:16 +0000 (09:24 +1300)
mod/scorm/datamodels/scorm_12.js.php

index 6fe70d8..7331813 100644 (file)
@@ -431,7 +431,7 @@ function SCORMapi1_2() {
                     }
                 ?>
                 result = ('true' == result) ? 'true' : 'false';
-                errorCode = (result ==' true')? '0' : '101';
+                errorCode = (result =='true')? '0' : '101';
                 <?php 
                     if (scorm_debugging($scorm)) {
                         //echo 'alert("Finished SCORM 1.2");';