diff --git a/Classes/Common/SolrSearchResult/ResultDocument.php b/Classes/Common/SolrSearchResult/ResultDocument.php index 1a1ebe2c27..f8fb2f489e 100644 --- a/Classes/Common/SolrSearchResult/ResultDocument.php +++ b/Classes/Common/SolrSearchResult/ResultDocument.php @@ -107,7 +107,7 @@ public function __construct($record, $highlighting, $fields) { $this->page = $record[$fields['page']]; $highlightingForRecord = $highlighting[$record[$fields['id']]][$fields['fulltext']]; - $this->snippetsForRecord = $highlightingForRecord['snippets']; + $this->snippetsForRecord = is_array($highlightingForRecord['snippets']) ? $highlightingForRecord['snippets'] : []; $this->parseSnippets(); $this->parsePages();