MDL-39363 scorm: Accept 0 as a valid score
authorAnkit Agarwal <ankit@moodle.com>
Mon, 29 Apr 2013 08:53:15 +0000 (16:53 +0800)
committerAnkit Agarwal <ankit@moodle.com>
Mon, 29 Apr 2013 08:53:15 +0000 (16:53 +0800)
mod/scorm/datamodels/scorm_12.js.php

index d931282..a840488 100644 (file)
@@ -650,7 +650,7 @@ function SCORMapi1_2() {
             }
             if (cmi.core.lesson_mode == 'normal') {
                 if (cmi.core.credit == 'credit') {
-                    if (cmi.student_data.mastery_score != '' && cmi.core.score.raw != '') {
+                    if (cmi.student_data.mastery_score !== '' && cmi.core.score.raw !== '') {
                         if (parseFloat(cmi.core.score.raw) >= parseFloat(cmi.student_data.mastery_score)) {
                             cmi.core.lesson_status = 'passed';
                         } else {