diff --git a/core/Command/Info/FileUtils.php b/core/Command/Info/FileUtils.php index 694f30f78b4..6bbaca65c29 100644 --- a/core/Command/Info/FileUtils.php +++ b/core/Command/Info/FileUtils.php @@ -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) {