mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: ensure array returned from getMountsForFileId is continious
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
08ec209aee
commit
eb4fb994cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue