Issue Bug Closed

#92698variables in ContentContentObject::render

David Bruchmann 10/24/20, 12:04 updated 02/19/22, 16:39

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.