diff --git a/course/rest.php b/course/rest.php index e7d5b2e83b3..b48be7cc763 100644 --- a/course/rest.php +++ b/course/rest.php @@ -78,7 +78,6 @@ if ($class === 'section' && $field === 'move') { if ($beforeid > 0) { $beforemod = get_coursemodule_from_id('', $beforeid, $course->id); - $beforemod = $DB->get_record('course_modules', array('id' => $beforeid)); } else { $beforemod = null; }