aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-11-13 15:49:30 +0100
committerRobin Appelman <robin@icewind.nl>2023-11-13 15:49:30 +0100
commit27cc9e96777f6b99c3bd9a842e5aa68e976dcd3f (patch)
treefa8c9092b6ad0c241d3952a2548f7d1e21e8855b
parent1aa24c024e207b54df3867f5f7ccd67625ac0492 (diff)
downloadnextcloud-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.php3
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);
}
/**