From 6b0a5b94f50bbb52b5fd3552b7ebfe485dae0942 Mon Sep 17 00:00:00 2001 From: Don Hardman Date: Tue, 7 Jan 2025 11:27:56 +0700 Subject: [PATCH] Fix issue when we adding data field to the search response --- src/ManticoreSearch/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 src/ManticoreSearch/Response.php 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; }