From e51e3fcb34fe94201fc4c9d31c60fa8ad434c242 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 18 Sep 2006 12:48:00 +0000 Subject: [PATCH] Fixed notice --- mod/forum/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5