]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed notice
authorvyshane <vyshane>
Mon, 18 Sep 2006 12:48:00 +0000 (12:48 +0000)
committervyshane <vyshane>
Mon, 18 Sep 2006 12:48:00 +0000 (12:48 +0000)
mod/forum/post.php

index 4b3ee5ab2c17e38aeefeacf0e7067c04395e1826..812457a1e4cf63efbf03fc3ceb33aed4e04ec7b9 100644 (file)
         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);