aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Info/FileUtils.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Info/FileUtils.php')
-rw-r--r--core/Command/Info/FileUtils.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/Command/Info/FileUtils.php b/core/Command/Info/FileUtils.php
index 694f30f78b4..595a0216a5c 100644
--- a/core/Command/Info/FileUtils.php
+++ b/core/Command/Info/FileUtils.php
@@ -87,11 +87,7 @@ class FileUtils {
}
$mount = $mounts[0];
$userFolder = $this->rootFolder->getUserFolder($mount->getUser()->getUID());
- $nodes = $userFolder->getById((int)$fileInput);
- if (!$nodes) {
- return null;
- }
- return $nodes[0];
+ return $userFolder->getFirstNodeById((int)$fileInput);
} else {
try {
return $this->rootFolder->get($fileInput);