diff --git a/Classes/Common/Solr/SolrSearch.php b/Classes/Common/Solr/SolrSearch.php index 4b40e91f3..ff718a9a8 100644 --- a/Classes/Common/Solr/SolrSearch.php +++ b/Classes/Common/Solr/SolrSearch.php @@ -499,10 +499,10 @@ public function submit($start, $rows, $processResults = true) $childrenOf = $this->documentRepository->findChildrenOfEach($documentSet); foreach ($result['documents'] as $doc) { - if (empty($documents[$doc['uid']]) && $allDocuments[$doc['uid']]) { + if (empty($documents[$doc['uid']]) && isset($allDocuments[$doc['uid']])) { $documents[$doc['uid']] = $allDocuments[$doc['uid']]; } - if ($documents[$doc['uid']]) { + if (isset($documents[$doc['uid']])) { $this->translateLanguageCode($doc); if ($doc['toplevel'] === false) { // this maybe a chapter, article, ..., year