Skip to content
Browse files

MDL-31407 quiz: finish_attempt method should not rely on $USER

  • Loading branch information...
1 parent a1063d9 commit 5779bd391594315468281d039286531b37e02c6f @ktemkin ktemkin committed with timhunt Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/attemptlib.php
View
2 mod/quiz/attemptlib.php
@@ -1089,7 +1089,7 @@ public function finish_attempt($timestamp) {
$DB->update_record('quiz_attempts', $this->attempt);
if (!$this->is_preview()) {
- quiz_save_best_grade($this->get_quiz());
+ quiz_save_best_grade($this->get_quiz(), $this->attempt->userid);
// Trigger event
$eventdata = new stdClass();

0 comments on commit 5779bd3

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