Skip to content
Permalink
Browse files

MDL-45522 quiz Check that sumgrade is valid before saving.

  • Loading branch information...
merrill-oakland authored and danpoltawski committed May 12, 2014
1 parent 281e37e commit 6794a98f6c881ed5bd64a2a394b03ddb87e78320
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/quiz/db/upgrade.php
@@ -668,6 +668,9 @@ function xmldb_quiz_upgrade($oldversion) {
FROM {quiz_slots}
WHERE quizid = ?",
array($quiz->id));
if (!$newsumgrades) {
$newsumgrades = 0;
}
if (abs($newsumgrades - $quiz->sumgrades) > 0.000005) {
debugging('Because of the previously mentioned problems, ' .
'sumgrades for quiz ' . $quiz->id .

0 comments on commit 6794a98

Please sign in to comment.
You can’t perform that action at this time.