Bug #98468
Updated by Ralph Brugger almost 2 years ago
PHP Warning: Undefined array key "stdWrap2" in /data/www/sites/baden-wuerttemberg.de/shared/typo3_src/typo3_src-11.5.16/typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php line 123 Code: <pre> if (($this->I['val']['stdWrap2'] ?? false) || isset($this->I['val']['stdWrap2.'])) { </pre> If $this->I['val']['stdWrap2'] $this->I['val']['stdWrap2.'] isn't set this will produce a PHP Warning. Like this? Should it be an "&&" instead of an "||"? <pre> if (! isset($this->I['val']['stdWrap2'])){ $this->I['val']['stdWrap2'] = ''; } if (($this->I['val']['stdWrap2'] ?? false) || isset($this->I['val']['stdWrap2.'])) { $stdWrap2 = (string)(isset($this->I['val']['stdWrap2.']) ? $this->WMcObj->stdWrap('|', $this->I['val']['stdWrap2.']) : '|'); $wrapPartsStdWrap = explode($this->I['val']['stdWrap2'] ?: '|', $stdWrap2); } else { $wrapPartsStdWrap = ['', '']; } </pre>