Skip to content

Commit

Permalink
[BUGFIX] Fix undefined array key warning in GifBuilder
Browse files Browse the repository at this point in the history
Resolves: #97087
Releases: main, 11.5
Change-Id: Ic9c20883bdca1bde52ebb21cdafb0fd4f82a0778
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73776
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
André Buchmann authored and lolli42 committed Mar 3, 2022
1 parent f1ba2b9 commit da8be96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
Expand Up @@ -137,7 +137,7 @@ public function start($conf, $data)
}
// Initializing global Char Range Map
$this->charRangeMap = [];
if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController && is_array($GLOBALS['TSFE']->tmpl->setup['_GIFBUILDER.']['charRangeMap.'])) {
if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController && is_array($GLOBALS['TSFE']->tmpl->setup['_GIFBUILDER.']['charRangeMap.'] ?? null)) {
foreach ($GLOBALS['TSFE']->tmpl->setup['_GIFBUILDER.']['charRangeMap.'] as $cRMcfgkey => $cRMcfg) {
if (is_array($cRMcfg)) {
// Initializing:
Expand Down Expand Up @@ -212,7 +212,7 @@ public function start($conf, $data)
$this->setup[$theKey . '.']['BBOX'] = $essentialFileInfo;
$this->objBB[$theKey] = $essentialFileInfo;
if ($conf['mask'] ?? false) {
$maskInfo = $this->getResource($conf['mask'], $conf['mask.']);
$maskInfo = $this->getResource($conf['mask'], $conf['mask.'] ?? []);
if ($maskInfo) {
// the same selection criteria as regarding fileInfo above apply here
if (($maskInfo['processedFile'] ?? null) instanceof ProcessedFile) {
Expand Down

0 comments on commit da8be96

Please sign in to comment.