summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-04-29 13:55:07 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-04-30 09:52:24 +0000
commit229716939ef309ade28326c04388fdd67dda675e (patch)
treeab1afd00c73be5bb51af13089af6586363634bb5
parent3750072975e1d487dd2414f0cdb751ec02c7806c (diff)
downloadnextcloud-server-229716939ef309ade28326c04388fdd67dda675e.tar.gz
nextcloud-server-229716939ef309ade28326c04388fdd67dda675e.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 da60c12b49f..4c0d468516a 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)) {