From 393cadf205d8a08e47ff00782b12ea1e037fb431 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 5 Sep 2012 18:01:24 +0200 Subject: [PATCH] MDL-29662 quiz overrides: use proper course value (was php notice). --- mod/quiz/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index a14fc8fc659..fc2aa97b47e 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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();