Skip to content

Commit

Permalink
Assign document only if there is document for given id
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed May 30, 2024
1 parent 27030e7 commit 1424895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Common/Solr/SolrSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1424895

Please sign in to comment.