diff --git a/lib/Service/ShareWrapperService.php b/lib/Service/ShareWrapperService.php index a2b62e49c..c0b6f7cf6 100644 --- a/lib/Service/ShareWrapperService.php +++ b/lib/Service/ShareWrapperService.php @@ -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); } /**