From 229716939ef309ade28326c04388fdd67dda675e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 29 Apr 2024 13:55:07 +0200 Subject: [PATCH] fix(files): Fix ownership transfer encrypted files detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Discovered by psalm update Signed-off-by: Côme Chilliet --- apps/files/lib/Service/OwnershipTransferService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index da60c12b49fe0..4c0d468516a03 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -244,7 +244,7 @@ protected function analyse(string $sourceUid, $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)) {