Skip to content

Commit

Permalink
Merge branch 'MDL-64730-lti-adv-0score-35' of https://github.com/Ceng…
Browse files Browse the repository at this point in the history
…ageEng/moodle into MOODLE_35_STABLE
  • Loading branch information
David Monllaó committed Feb 12, 2019
2 parents 6699b20 + be5dd33 commit 799e4e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public static function save_score($gradeitem, $score, $userid) {
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)) {
Expand Down

0 comments on commit 799e4e2

Please sign in to comment.