diff options
author | Robin Appelman <robin@icewind.nl> | 2023-11-13 15:49:30 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-11-13 15:49:30 +0100 |
commit | 27cc9e96777f6b99c3bd9a842e5aa68e976dcd3f (patch) | |
tree | fa8c9092b6ad0c241d3952a2548f7d1e21e8855b | |
parent | 1aa24c024e207b54df3867f5f7ccd67625ac0492 (diff) | |
download | nextcloud-server-27cc9e96777f6b99c3bd9a842e5aa68e976dcd3f.tar.gz nextcloud-server-27cc9e96777f6b99c3bd9a842e5aa68e976dcd3f.zip |
don't return a 'sparse' array from getMountsForFileIdgetMountsForFileId-non-sparse
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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); } /** |