From: moodler Date: Sun, 1 Oct 2006 09:26:50 +0000 (+0000) Subject: Fixed a typo causing MDL-6758 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1a5a5b0e04e54962700d009546dd3e668b0f3f36;p=moodle.git Fixed a typo causing MDL-6758 --- diff --git a/course/editsection.php b/course/editsection.php index c963f28b33..06689c8449 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -16,7 +16,7 @@ error("Could not find the course!"); } - require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $id)); + require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id)); /// If data submitted, then process and store.