Skip to content

Commit

Permalink
ignore empty fileIds
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed Jul 6, 2024
1 parent a3f9e14 commit c7a6e18
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 c7a6e18

Please sign in to comment.