Skip to content

Commit

Permalink
Fix issue when we adding data field to the search response
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Jan 8, 2025
1 parent 21e202a commit 6b0a5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ManticoreSearch/Response.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6b0a5b9

Please sign in to comment.