Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29662 quiz overrides: use proper course value (was php notice).

  • Loading branch information...
commit 3f4e07ef3c8bbe7ecd75db18c73348d6ac64d682 1 parent 9569ba7
Eloy Lafuente (stronk7) stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/lib.php
2  mod/quiz/lib.php
View
@@ -1153,7 +1153,7 @@ function quiz_update_events($quiz, $override = null) {
if (!empty($quiz->coursemodule)) {
$cmid = $quiz->coursemodule;
} else {
- $cmid = get_coursemodule_from_instance('quiz', $quiz->id, $courseid)->id;
+ $cmid = get_coursemodule_from_instance('quiz', $quiz->id, $quiz->course)->id;
}
$event = new stdClass();
Please sign in to comment.
Something went wrong with that request. Please try again.