diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-29 13:55:07 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-30 09:50:56 +0000 |
commit | a051dfc8ae266f3bc228f385e3def6af8f89c37c (patch) | |
tree | 4b77e087b36a9ffd412a841396a67884feabcc45 /apps | |
parent | 6a045e379fe582082e5301a5c59d2312ba755c5d (diff) | |
download | nextcloud-server-a051dfc8ae266f3bc228f385e3def6af8f89c37c.tar.gz nextcloud-server-a051dfc8ae266f3bc228f385e3def6af8f89c37c.zip |
fix(files): Fix ownership transfer encrypted files detection
Discovered by psalm update
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 7acb507e18d..59ebabedcbb 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -256,7 +256,7 @@ class OwnershipTransferService { $encryptedFiles = []; $this->walkFiles($view, $sourcePath, - function (FileInfo $fileInfo) use ($progress) { + function (FileInfo $fileInfo) use ($progress, &$encryptedFiles) { if ($fileInfo->getType() === FileInfo::TYPE_FOLDER) { // only analyze into folders from main storage, if (!$fileInfo->getStorage()->instanceOfStorage(IHomeStorage::class)) { |