mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Merge pull request #45258 from nextcloud/bug/noid/get-mounts-for-fileid-may-return-and-unindexed-list
fix: getMountsForFileId may return an unordered list
This commit is contained in:
commit
bf8b93e530
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class FileUtils {
|
|||
if (!$mounts) {
|
||||
return null;
|
||||
}
|
||||
$mount = $mounts[0];
|
||||
$mount = reset($mounts);
|
||||
$userFolder = $this->rootFolder->getUserFolder($mount->getUser()->getUID());
|
||||
return $userFolder->getFirstNodeById((int)$fileInput);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue