Project

General

Profile

Actions

Bug #92698

closed

variables in ContentContentObject::render

Added by David Bruchmann over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2020-10-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
ContentObject rendering TypoScript
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Some variable are not checked properly before usage:

$slide = isset($conf['slide.']) ? (int)$this->cObj->stdWrap($conf['slide'], $conf['slide.']) : (int)$conf['slide'];

here even $conf['slide'] might not be set, that's producing an error then.

        $slideCollect = isset($conf['slide.']['collect.']) ? (int)$this->cObj->stdWrap($conf['slide.']['collect'], $conf['slide.']['collect.']) : (int)$conf['slide.']['collect'];

here even $conf['slide.']['collect'] might not be set, that's producing an error then.
        $slideCollectReverse = isset($conf['slide.']['collectReverse.']) ? (int)$this->cObj->stdWrap($conf['slide.']['collectReverse'], $conf['slide.']['collectReverse.']) : (int)$conf['slide.']['collectReverse'];

here even $conf['slide.']['collectReverse'] might not be set, that's producing an error then.
        $slideCollectFuzzy = isset($conf['slide.']['collectFuzzy.'])
            ? (bool)$this->cObj->stdWrap($conf['slide.']['collectFuzzy'], $conf['slide.']['collectFuzzy.'])
            : (bool)$conf['slide.']['collectFuzzy'];

here $conf['slide.']['collectFuzzy'] might not be set, that's producing an error then (line 3 above).
        $conf['select.']['pidInList'] = $this->cObj->getSlidePids($conf['select.']['pidInList'], $conf['select.']['pidInList.']);

here $conf['select.']['pidInList'] might not be set, that's producing an error then.

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #91657: Use stdWrapValue consitently instead of manually checking existing config with ternary operatorClosed2020-06-16

Actions
Actions

Also available in: Atom PDF