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 committed Jun 27, 2024
1 parent 3251960 commit 8553b58
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 @@ -181,7 +181,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 8553b58

Please sign in to comment.