From: vyshane Date: Mon, 18 Sep 2006 12:48:00 +0000 (+0000) Subject: Fixed notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e51e3fcb34fe94201fc4c9d31c60fa8ad434c242;p=moodle.git Fixed notice --- diff --git a/mod/forum/post.php b/mod/forum/post.php index 4b3ee5ab2c..812457a1e4 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -408,7 +408,7 @@ if (! $course = get_record("course", "id", $discussion->course)) { error("The course number was incorrect ($discussion->course)"); } - if (!$cm = get_coursemodule_from_instance("forum", $forum->id, $course->i)) { + if (!$cm = get_coursemodule_from_instance("forum", $forum->id, $course->id)) { error('Could not get the course module for the forum instance.'); } else { $modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);