Skip to content

Commit

Permalink
Merge branch 'MDL-61107' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jan 2, 2018
2 parents dc61d1b + d2e1aa7 commit b5e7264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@
if (optional_param('savechanges', false, PARAM_BOOL) && confirm_sesskey()) {

// If rescaling is required save the new maximum.
$maxgrade = unformat_float(optional_param('maxgrade', -1, PARAM_RAW));
if ($maxgrade >= 0) {
$maxgrade = unformat_float(optional_param('maxgrade', '', PARAM_RAW_TRIMMED), true);
if (is_float($maxgrade) && $maxgrade >= 0) {
quiz_set_grade($maxgrade, $quiz);
quiz_update_all_final_grades($quiz);
quiz_update_grades($quiz, 0, true);
Expand Down

0 comments on commit b5e7264

Please sign in to comment.