Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some kind of typo prevented sumgrades grounding to work

  • Loading branch information...
commit 3317eeaed04b70a3b8fe22f01db8abbc86896e7f 1 parent 474de04
patrickslee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/locallib.php
View
2  mod/quiz/locallib.php
@@ -1713,7 +1713,7 @@ function quiz_process_responses(&$question, &$state, $action, $quiz, &$attempt)
$attempt->timemodified = $action->timestamp;
// Round long sumgrades
if (strlen($attempt->sumgrades) > 10 && floatval($attempt->sumgrades)) {
- $attempt->sumgrades = strval(round($attempt->sumgrades,10-1-strlen(floor($state->sumgrades))));
+ $attempt->sumgrades = strval(round($attempt->sumgrades,10-1-strlen(floor($attempt->sumgrades))));
}
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.