From b19b0a7fcfba0fbedf0096855a724f63e2dd22f9 Mon Sep 17 00:00:00 2001 From: "raja.lmsace@gmail.com" Date: Sat, 20 Apr 2024 19:18:42 +0530 Subject: [PATCH] Moodle plugin CI improved. --- classes/helper.php | 1 - 1 file changed, 1 deletion(-) 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]);