Browse Source

Merge pull request #45140 from nextcloud/fix-fileaccess-single

fix: fix FileAccess::getByFileId(InStorage)
pull/45160/head
Daniel 2 years ago
committed by GitHub
parent
commit
dbd2bc7a66
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      lib/private/Files/Cache/FileAccess.php

4
lib/private/Files/Cache/FileAccess.php

@ -56,7 +56,7 @@ class FileAccess implements IFileAccess {
}
public function getByFileIdInStorage(int $fileId, int $storageId): ?CacheEntry {
$items = $this->getByFileIdsInStorage([$fileId], $storageId);
$items = array_values($this->getByFileIdsInStorage([$fileId], $storageId));
return $items[0] ?? null;
}
@ -70,7 +70,7 @@ class FileAccess implements IFileAccess {
}
public function getByFileId(int $fileId): ?CacheEntry {
$items = $this->getByFileIds([$fileId]);
$items = array_values($this->getByFileIds([$fileId]));
return $items[0] ?? null;
}

Loading…
Cancel
Save