Permalink
Browse files

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

  • Loading branch information...
1 parent 9569ba7 commit 3f4e07ef3c8bbe7ecd75db18c73348d6ac64d682 @stronk7 stronk7 committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit 3f4e07e

Please sign in to comment.