summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-05-02 18:47:38 +0200
committerGitHub <noreply@github.com>2024-05-02 18:47:38 +0200
commit7de712661ea813218d1da1305d87a908971315c3 (patch)
tree43db023ca714b04acf5f0105b5ea61db7c019865
parent774d4908bfb8db3d953d3711ea4b35de0d207766 (diff)
parenta051dfc8ae266f3bc228f385e3def6af8f89c37c (diff)
downloadnextcloud-server-7de712661ea813218d1da1305d87a908971315c3.tar.gz
nextcloud-server-7de712661ea813218d1da1305d87a908971315c3.zip
Merge pull request #45109 from nextcloud/backport/45105/stable27
[stable27] [stable29] fix(files): Fix ownership transfer encrypted files detection
-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 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)) {