MDL-83807 files: Make file_get_all_files_in_draftarea return zip files

This commit is contained in:
Katie Ransom
2024-12-11 14:17:21 +00:00
parent 77efe4c929
commit 95d655295f
2 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -855,7 +855,7 @@ function file_get_all_files_in_draftarea(int $draftitemid, string $filepath = '/
if (!empty($draftfiles)) {
foreach ($draftfiles->list as $draftfile) {
if ($draftfile->type == 'file') {
if ($draftfile->type !== 'folder') {
$files[] = $draftfile;
}
}