diff --git a/classes/local/ltimodulemanager.php b/classes/local/ltimodulemanager.php index afca4da8..62182b20 100644 --- a/classes/local/ltimodulemanager.php +++ b/classes/local/ltimodulemanager.php @@ -443,7 +443,7 @@ public static function build_lti_modinfo($pluginid, $course, $title, $sectionid, $moduleinfo->availability = $availability; // Apply completion defaults. - $module = $DB->get_record('modules', ['name' => 'opencast']); + $module = $DB->get_record('modules', ['name' => 'lti'], '*', MUST_EXIST); $defaults = manager::get_default_completion($course, $module); if ($module) { foreach ($defaults as $key => $value) {