Permalink
Browse files

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

  • Loading branch information...
1 parent 130eddd commit 393cadf205d8a08e47ff00782b12ea1e037fb431 @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 393cadf

Please sign in to comment.