don't return a 'sparse' array from getMountsForFileId

Signed-off-by: Robin Appelman <robin@icewind.nl>
getMountsForFileId-non-sparse
Robin Appelman 7 months ago
parent 1aa24c024e
commit 27cc9e9677
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

@ -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);
}
/**

Loading…
Cancel
Save