Skip to content

Commit

Permalink
[BUGFIX] Fix php warning undefined array key no_search_sub_entries
Browse files Browse the repository at this point in the history
To avoid php warning for undefined array key, check if key is set in
$page array.

Fixes TYPO3-Solr#3380
  • Loading branch information
DrWh0286 authored and dkd-kaehm committed Dec 22, 2022
1 parent fa216a6 commit bb95516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/IndexQueue/RecordMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function skipRecordByRootlineConfiguration(int $pid): bool
return true;
}
foreach ($rootline as $page) {
if ($page['no_search_sub_entries']) {
if (isset($page['no_search_sub_entries']) && $page['no_search_sub_entries']) {
return true;
}
}
Expand Down

0 comments on commit bb95516

Please sign in to comment.