MOBILE-3523 quiz: Fix download ddmarker files

main
Dani Palou 2020-11-24 11:46:37 +01:00
parent 8098acd526
commit 185ed17cdb
1 changed files with 1 additions and 1 deletions

View File

@ -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]];
}