diff --git a/src/addon/qtype/ddmarker/providers/handler.ts b/src/addon/qtype/ddmarker/providers/handler.ts index e4fa425b8..3971da112 100644 --- a/src/addon/qtype/ddmarker/providers/handler.ts +++ b/src/addon/qtype/ddmarker/providers/handler.ts @@ -124,7 +124,7 @@ export class AddonQtypeDdMarkerHandler implements CoreQuestionHandler { getAdditionalDownloadableFiles(question: any, usageId: number): string[] { this.questionHelper.extractQuestionScripts(question, usageId); - if (question.amdArgs && typeof question.amdArgs[1] !== 'undefined') { + if (question.amdArgs && typeof question.amdArgs[1] == 'string') { // Moodle 3.6+. return [question.amdArgs[1]]; }