MDL-64730 LTI Adv: do not ignore 0 score
authorClaude Vervoort <claude.vervoort@cengage.com>
Wed, 30 Jan 2019 21:13:03 +0000 (16:13 -0500)
committerClaude Vervoort <claude.vervoort@cengage.com>
Wed, 30 Jan 2019 21:18:22 +0000 (16:18 -0500)
mod/lti/service/gradebookservices/classes/local/service/gradebookservices.php

index 9c7783e..e6914c3 100644 (file)
@@ -326,7 +326,7 @@ class gradebookservices extends service_base {
         require_once($CFG->libdir . '/gradelib.php');
         $finalgrade = null;
         $timemodified = null;
-        if (isset($score->scoreGiven) && $score->scoreGiven) {
+        if (isset($score->scoreGiven)) {
             $finalgrade = grade_floatval($score->scoreGiven);
             $max = 1;
             if (isset($score->scoreMaximum)) {