diff --git a/classes/external/export_question.php b/classes/external/export_question.php index 49b8839..4bd61a9 100644 --- a/classes/external/export_question.php +++ b/classes/external/export_question.php @@ -98,8 +98,8 @@ public static function execute(string $questionbankentryid, bool $includecategor case \CONTEXT_MODULE: $course = $DB->get_record_sql(" SELECT c.* - FROM mdl_course_modules cm - JOIN mdl_course c ON c.id = cm.course + FROM {course_modules} cm + JOIN {course} c ON c.id = cm.course WHERE cm.id = :moduleid", ['moduleid' => $questiondata->instanceid], MUST_EXIST);