Skip to content

Commit

Permalink
Merge pull request #1624 from nextcloud/backport/1615/stable28
Browse files Browse the repository at this point in the history
[stable28] ignore empty fileIds
  • Loading branch information
solracsf authored Jul 6, 2024
2 parents a3f9e14 + c7a6e18 commit d562872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ShareWrapperService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function getSharesByFileId(int $fileId, bool $getData = false): array {
* @throws RequestBuilderException
*/
public function getSharesByFileIds(array $fileIds, bool $getData = false): array {
return $this->shareWrapperRequest->getSharesByFileIds($fileIds, $getData);
return ($fileIds === []) ? [] : $this->shareWrapperRequest->getSharesByFileIds($fileIds, $getData);
}

/**
Expand Down

0 comments on commit d562872

Please sign in to comment.