diff --git a/src/ManticoreSearch/Client.php b/src/ManticoreSearch/Client.php index b895705..84b2252 100644 --- a/src/ManticoreSearch/Client.php +++ b/src/ManticoreSearch/Client.php @@ -161,9 +161,10 @@ public function sendRequest( * @return array */ public function sendMultiRequest(array $requests): array { - if (sizeof($requests) === 0) { + if (sizeof($requests) === 1) { $request = array_pop($requests); - return $this->sendRequestToUrl(...$request); + $response = $this->sendRequestToUrl(...$request); + return [$response]; } $requestCount = sizeof($requests); $channel = new Channel($requestCount);