Skip to content
Snippets Groups Projects
Commit 008068ba authored by Georg Ringer's avatar Georg Ringer Committed by Nikita Hovratov
Browse files

[BUGFIX] Fix notice in FrontendConfigurationManager

Resolves: #99213
Releases: 11.5
Change-Id: I1a664d2e4b9c84063383769f956609390e8c3021
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77371


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 151dc978
Branches
Tags
No related merge requests found
...@@ -126,7 +126,7 @@ class FrontendConfigurationManager extends AbstractConfigurationManager ...@@ -126,7 +126,7 @@ class FrontendConfigurationManager extends AbstractConfigurationManager
$pages = $this->contentObject->data['pages'] ?? ''; $pages = $this->contentObject->data['pages'] ?? '';
if (is_string($pages) && $pages !== '') { if (is_string($pages) && $pages !== '') {
$list = []; $list = [];
if ($this->contentObject->data['recursive'] > 0) { if ((int)($this->contentObject->data['recursive'] ?? 0) > 0) {
$explodedPages = GeneralUtility::trimExplode(',', $pages); $explodedPages = GeneralUtility::trimExplode(',', $pages);
foreach ($explodedPages as $pid) { foreach ($explodedPages as $pid) {
$pids = $this->contentObject->getTreeList($pid, $this->contentObject->data['recursive']); $pids = $this->contentObject->getTreeList($pid, $this->contentObject->data['recursive']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment