Skip to content

Commit

Permalink
fix: getMountsForFileId may return an unordered list
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and backportbot[bot] committed Jul 1, 2024
1 parent 3f72902 commit 0650af3
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 0650af3

Please sign in to comment.