Skip to content

Commit

Permalink
MDL-29662 quiz overrides: use proper course value (was php notice).
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Sep 5, 2012
1 parent 130eddd commit 393cadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 393cadf

Please sign in to comment.