diff --git a/classes/helper.php b/classes/helper.php index 63bb626..7cf7a2d 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -91,7 +91,6 @@ public static function update_emailvars($templatetext, $subject, $course, $user, $course->category = is_number($course->category) ? core_course_category::get($course->category)->get_formatted_name() : $course->category; - $mod = clone $mod; if (!empty($mod->id)) { if ($DB->record_exists('course_modules', ['id' => $mod->id])) { $module = $DB->get_record('course_modules', ['id' => $mod->id]);