Skip to content

Commit

Permalink
[BUGFIX] Assign document only if there is document for given id (#1232)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 30, 2024
1 parent c9fbc04 commit 244d382
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 244d382

Please sign in to comment.