Skip to content

Commit

Permalink
Merge pull request #22806 from nextcloud/fix/unified-search-indexed-r…
Browse files Browse the repository at this point in the history
…esult

Fix serializing indexed unified search array as object
  • Loading branch information
skjnldsv committed Sep 12, 2020
2 parents 8ab2d5a + 0022b63 commit 3ffd09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/public/Search/SearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
namespace OCP\Search;

use JsonSerializable;
use function array_values;

/**
* @since 20.0.0
Expand Down Expand Up @@ -107,7 +108,7 @@ public function jsonSerialize(): array {
return [
'name' => $this->name,
'isPaginated' => $this->isPaginated,
'entries' => $this->entries,
'entries' => array_values($this->entries),
'cursor' => $this->cursor,
];
}
Expand Down

0 comments on commit 3ffd09d

Please sign in to comment.