mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #46214 from nextcloud/backport/45258/stable28
[stable28] fix: getMountsForFileId may return an unordered list
This commit is contained in:
commit
db5fbe46ab
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());
|
||||
$nodes = $userFolder->getById((int)$fileInput);
|
||||
if (!$nodes) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue