fix: ensure array returned from getMountsForFileId is continious

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/46886/head
Robin Appelman 1 year ago
parent 08ec209aee
commit eb4fb994cf
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 4
      lib/private/Files/Config/UserMountCache.php

@ -362,9 +362,9 @@ class UserMountCache implements IUserMountCache {
return $internalMountPath === '' || str_starts_with($internalPath, $internalMountPath . '/');
});
$filteredMounts = array_filter($filteredMounts, function (ICachedMountInfo $mount) {
$filteredMounts = array_values(array_filter($filteredMounts, function (ICachedMountInfo $mount) {
return $this->userManager->userExists($mount->getUser()->getUID());
});
}));
return array_map(function (ICachedMountInfo $mount) use ($internalPath) {
return new CachedMountFileInfo(

Loading…
Cancel
Save