Skip to content

Commit

Permalink
Merge pull request #46213 from nextcloud/backport/45258/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: getMountsForFileId may return an unordered list
  • Loading branch information
susnux authored Jul 1, 2024
2 parents 3f72902 + 0650af3 commit 859ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Command/Info/FileUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getNode(string $fileInput): ?Node {
if (!$mounts) {
return null;
}
$mount = $mounts[0];
$mount = reset($mounts);
$userFolder = $this->rootFolder->getUserFolder($mount->getUser()->getUID());
return $userFolder->getFirstNodeById((int)$fileInput);
} else {
Expand Down

0 comments on commit 859ff7b

Please sign in to comment.