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