summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-06-07 12:01:47 +0200
committerGitHub <noreply@github.com>2024-06-07 12:01:47 +0200
commit1aeb49e74f3a1de25f8b68fb4eaf7976db5f5be7 (patch)
tree773b76fa53f5c127238a3c01895774d4be596b24 /apps
parent378833e34355cd29b2de250eeeac05ca929a0ef8 (diff)
parent229716939ef309ade28326c04388fdd67dda675e (diff)
downloadnextcloud-server-1aeb49e74f3a1de25f8b68fb4eaf7976db5f5be7.tar.gz
nextcloud-server-1aeb49e74f3a1de25f8b68fb4eaf7976db5f5be7.zip
Merge pull request #45110 from nextcloud/backport/45105/stable28
Diffstat (limited to 'apps')
-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)) {