MDL-83807 files: Make file_get_all_files_in_draftarea return zip files

This commit is contained in:
Katie Ransom
2024-12-11 14:11:57 +00:00
parent e10420df88
commit 408383f20d
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;
}
}