From 8d05a5c3584fea901698cacb038f94a9f609fad0 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 27 Jun 2024 10:25:27 -0100 Subject: [PATCH] ignore empty fileIds Signed-off-by: Maxence Lange --- lib/Service/ShareWrapperService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**