]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a typo causing MDL-6758
authormoodler <moodler>
Sun, 1 Oct 2006 09:26:50 +0000 (09:26 +0000)
committermoodler <moodler>
Sun, 1 Oct 2006 09:26:50 +0000 (09:26 +0000)
course/editsection.php

index c963f28b331b832b55891e6cd45d646104db768f..06689c844941871ee4610f257583ce7f7a530675 100644 (file)
@@ -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.