diff --git a/core/Command/Info/FileUtils.php b/core/Command/Info/FileUtils.php index 595a0216a5ccf..1841a17e0be91 100644 --- a/core/Command/Info/FileUtils.php +++ b/core/Command/Info/FileUtils.php @@ -85,7 +85,7 @@ public function getNode(string $fileInput): ?Node { if (!$mounts) { return null; } - $mount = $mounts[0]; + $mount = reset($mounts); $userFolder = $this->rootFolder->getUserFolder($mount->getUser()->getUID()); return $userFolder->getFirstNodeById((int)$fileInput); } else {