From: tjhunt Date: Wed, 23 Aug 2006 15:32:06 +0000 (+0000) Subject: Get the contexts without referring to undefined variables. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a18fa6d5bae16734c9d0833af5f4297af0c5a1a5;p=moodle.git Get the contexts without referring to undefined variables. --- diff --git a/mod/quiz/review.php b/mod/quiz/review.php index 41e31c868f..ef267c76ae 100644 --- a/mod/quiz/review.php +++ b/mod/quiz/review.php @@ -41,7 +41,7 @@ require_login($course->id, false, $cm); $context = get_context_instance(CONTEXT_MODULE, $cm->id); - $coursecontext = get_context_instance(CONTEXT_COURSE, $id); + $coursecontext = get_context_instance(CONTEXT_COURSE, $cm->course); $isteacher = isteacher($course->id); $options = quiz_get_reviewoptions($quiz, $attempt, $isteacher); $popup = $isteacher ? 0 : $quiz->popup; // Controls whether this is shown in a javascript-protected window.