diff --git a/src/ManticoreSearch/Response.php b/src/ManticoreSearch/Response.php old mode 100755 new mode 100644 index e347d8e..727d930 --- a/src/ManticoreSearch/Response.php +++ b/src/ManticoreSearch/Response.php @@ -143,7 +143,7 @@ public function getResult(): Struct { // @phpstan-ignore-next-line $item['data'] = $this->data; $result[0] = $item; - } else { + } elseif (isset($this->result['data'])) { $this->result['data'] = $this->data; }