Permalink
Browse files

Merge branch 'MDL-25478' of git://git.luns.net.uk/moodle

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jan 10, 2011
2 parents 0d2d7a6 + ebb3206 commit 34e54bbb623e5f91769a22e61baa8b3ecfb8b7a8
Showing with 5 additions and 3 deletions.
  1. +5 −3 course/modedit.php
View
@@ -42,12 +42,14 @@
}
if (!empty($add)) {
- $url->param('add', $add);
- $PAGE->set_url($url);
-
$section = required_param('section', PARAM_INT);
$course = required_param('course', PARAM_INT);
+ $url->param('add', $add);
+ $url->param('section', $section);
+ $url->param('course', $course);
+ $PAGE->set_url($url);
+
$course = $DB->get_record('course', array('id'=>$course), '*', MUST_EXIST);
$module = $DB->get_record('modules', array('name'=>$add), '*', MUST_EXIST);

0 comments on commit 34e54bb

Please sign in to comment.