Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/CengageEng/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllaó committed Feb 12, 2019
2 parents 59f75c4 + 25ad682 commit 9426a13
Showing 1 changed file with 1 addition and 1 deletion.
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 9426a13

Please sign in to comment.