diff options
Diffstat (limited to 'core/Command/Info')
-rw-r--r-- | core/Command/Info/FileUtils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Info/FileUtils.php b/core/Command/Info/FileUtils.php index 595a0216a5c..1841a17e0be 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()); return $userFolder->getFirstNodeById((int)$fileInput); } else { |