Permalink
Browse files

Merge branch 'MDL-61107_33' of git://github.com/timhunt/moodle into M…

…OODLE_33_STABLE
  • Loading branch information...
dmonllao committed Jan 2, 2018
2 parents 557b880 + 1926647 commit cb04f502d5e70aa3a5901d0d01ef17b6110e7698
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/edit.php
@@ -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);

0 comments on commit cb04f50

Please sign in to comment.