mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix: getMountsForFileId may return an unordered list
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
f6d4af8b2c
commit
69883ac0cc
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