aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-04-29 13:55:07 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-04-30 09:23:59 +0200
commit4c27e88b404ecdcaca8995057c251925c84d6137 (patch)
tree9373cb00d4edd92c1d4da02bb0de0d461a5372ff
parent26c4ca264fd2ea02c404679d22014d76a7dbacc7 (diff)
downloadnextcloud-server-4c27e88b404ecdcaca8995057c251925c84d6137.tar.gz
nextcloud-server-4c27e88b404ecdcaca8995057c251925c84d6137.zip
fix(files): Fix ownership transfer encrypted files detection
Discovered by psalm update Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 1a28785fa1f..dabb9fd5d08 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -244,7 +244,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)) {