Browse Source

fix: getMountsForFileId may return an unordered list

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/45258/head
Daniel Kesselberg 1 month ago
parent
commit
69883ac0cc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      core/Command/Info/FileUtils.php

+ 1
- 1
core/Command/Info/FileUtils.php View File

@@ -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…
Cancel
Save