From 690ce5e42e3bbd1ac003f8d516f0e00402022ad6 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Wed, 11 Jan 2023 11:39:39 +0100 Subject: [PATCH] [BUGFIX] Avoid undef array key in ContentObjectRenderer Resolves: #98995 Releases: main, 11.5 Change-Id: I70cd2ed6ba9efe3a4e4216a61903157f1421568f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77333 Reviewed-by: Oliver Bartsch <bo@cedev.de> Tested-by: core-ci <typo3@b13.com> Tested-by: Oliver Bartsch <bo@cedev.de> --- .../frontend/Classes/ContentObject/ContentObjectRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 1866b743c94f..cf767932e2b6 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -1187,7 +1187,7 @@ class ContentObjectRenderer implements LoggerAwareInterface { $tstamp = (int)$tstamp; $tsfe = $this->getTypoScriptFrontendController(); - if ($tstamp > (int)$tsfe->register['SYS_LASTCHANGED']) { + if ($tstamp > (int)($tsfe->register['SYS_LASTCHANGED'] ?? 0)) { $tsfe->register['SYS_LASTCHANGED'] = $tstamp; } } -- GitLab