diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 029915a7ce1..233aa9f992e 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1615,7 +1615,7 @@ class Manager implements IManager { $file = $folder->newFile(time() . '-' . rand(1, 100000) . ($ext ? '.' . $ext : ''), $data); $newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile } else { - $newOutput = []; + $newOutput[$key] = []; foreach ($output[$key] as $item) { if ($item instanceof FileShaped) { $data = $item->getData(); @@ -1772,7 +1772,7 @@ class Manager implements IManager { $newOutput[$key] = $this->validateFileId($output[$key]); } else { // Is list of file IDs - $newOutput = []; + $newOutput[$key] = []; foreach ($output[$key] as $item) { $newOutput[$key][] = $this->validateFileId($item); }