Skip to content

Commit

Permalink
[BUGFIX] Fix undefined array key in FrontendGenerationPageIndexingTri…
Browse files Browse the repository at this point in the history
…gger

This is an edge-case, where `config.index_enable = 1` is set, but the
static TypoScript from indexed_search is not included and thus
`config.index_externals` is undefined.

Resolves: #100888
Releases: main, 12.4, 11.5
Change-Id: I0b9fa04970812ca82edc4d223cd57e59e3a2ed83
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79070
Tested-by: core-ci <typo3@b13.com>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
  • Loading branch information
nhovratov committed May 19, 2023
1 parent 368326d commit 54f3fa0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -116,7 +116,7 @@ protected function initializeIndexerConfiguration(TypoScriptFrontendController $
$configuration['mtime'] = $tsfe->register['SYS_LASTCHANGED'] ?? $tsfe->page['SYS_LASTCHANGED'];
// Most recent modification time (seconds) of the content on the page. Used to evaluate whether it should be re-indexed.
// Configuration of behavior
$configuration['index_externals'] = $tsfe->config['config']['index_externals'];
$configuration['index_externals'] = $tsfe->config['config']['index_externals'] ?? true;
// Whether to index external documents like PDF, DOC etc. (if possible)
$configuration['index_descrLgd'] = $tsfe->config['config']['index_descrLgd'] ?? 0;
// Length of description text (max 250, default 200)
Expand Down

0 comments on commit 54f3fa0

Please sign in to comment.