Skip to content

Commit

Permalink
Merge pull request #1640 from nextcloud/backport/1615/stable27
Browse files Browse the repository at this point in the history
[stable27] ignore empty fileIds
  • Loading branch information
sorbaugh authored Jul 25, 2024
2 parents 6fc2800 + 8d05a5c commit bff0954
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 bff0954

Please sign in to comment.