diff options
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 7502d65d044..e2bcb21f0dc 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -369,7 +369,7 @@ class UserMountCache implements IUserMountCache { }); $filteredMounts = array_filter(array_map([$this, 'dbRowToMountInfo'], $filteredMounts)); - return array_map(function (ICachedMountInfo $mount) use ($internalPath) { + $result = array_map(function (ICachedMountInfo $mount) use ($internalPath) { return new CachedMountFileInfo( $mount->getUser(), $mount->getStorageId(), @@ -381,6 +381,7 @@ class UserMountCache implements IUserMountCache { $internalPath ); }, $filteredMounts); + return array_values($result); } /** |