MDL-73735 course: remove duplicate line of code

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Co-authored-by: Davo Smith <davo.smith@synergy-learning.com>
This commit is contained in:
Daniel Ziegenberg 2024-05-21 13:11:20 +02:00
parent bcae2164ac
commit 9b30118456
No known key found for this signature in database
GPG Key ID: 7E6F98FFADBEFD39

View File

@ -78,7 +78,6 @@ if ($class === 'section' && $field === 'move') {
if ($beforeid > 0) { if ($beforeid > 0) {
$beforemod = get_coursemodule_from_id('', $beforeid, $course->id); $beforemod = get_coursemodule_from_id('', $beforeid, $course->id);
$beforemod = $DB->get_record('course_modules', array('id' => $beforeid));
} else { } else {
$beforemod = null; $beforemod = null;
} }