Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some kind of typo prevented sumgrades grounding to work

  • Loading branch information...
commit 3317eeaed04b70a3b8fe22f01db8abbc86896e7f 1 parent 474de04
authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/quiz/locallib.php
2  mod/quiz/locallib.php
@@ -1713,7 +1713,7 @@ function quiz_process_responses(&$question, &$state, $action, $quiz, &$attempt)
1713 1713
     $attempt->timemodified = $action->timestamp;
1714 1714
     // Round long sumgrades
1715 1715
     if (strlen($attempt->sumgrades) > 10 && floatval($attempt->sumgrades)) {
1716  
-       $attempt->sumgrades = strval(round($attempt->sumgrades,10-1-strlen(floor($state->sumgrades))));
  1716
+       $attempt->sumgrades = strval(round($attempt->sumgrades,10-1-strlen(floor($attempt->sumgrades))));
1717 1717
     }
1718 1718
 
1719 1719
     return true;

0 notes on commit 3317eea

Please sign in to comment.
Something went wrong with that request. Please try again.