mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-61107' of git://github.com/timhunt/moodle
This commit is contained in:
commit
b5e7264543
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ if ((optional_param('addrandom', false, PARAM_BOOL)) && confirm_sesskey()) {
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue