mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
fix: getMountsForFileId may return an unordered list
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
95ecf7e3a5
commit
e417f235ba
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