diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index b89f3327b35..cab2ad23ffe 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -909,6 +909,10 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo $fs = get_file_storage(); if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) { + if ($filearea === 'content') { //return file not found straight away to improve performance. + header('HTTP/1.0 404 not found'); + die; + } return false; }