[BUGFIX] CONTENT cObj: Set 'select.' to array if empty 99/46099/4
authorStefan Froemken <froemken@gmail.com>
Wed, 20 Jan 2016 06:55:38 +0000 (07:55 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 29 Jan 2016 09:14:06 +0000 (10:14 +0100)
Ensure that the 'select.' configuration is an array
to avoid PHP errors.

Resolves: #72817
Releases: master, 7.6
Change-Id: I749fec996759883d78a2566c9d6b668ed4c7955e
Reviewed-on: https://review.typo3.org/46099
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php

index 4307806..b615c81 100644 (file)
@@ -45,6 +45,7 @@ class ContentContentObject extends AbstractContentObject
             ++$frontendController->recordRegister[$originalRec];
         }
         $conf['table'] = isset($conf['table.']) ? trim($this->cObj->stdWrap($conf['table'], $conf['table.'])) : trim($conf['table']);
+        $conf['select.'] = !empty($conf['select.']) ? $conf['select.'] : array();
         $renderObjName = $conf['renderObj'] ?: '<' . $conf['table'];
         $renderObjKey = $conf['renderObj'] ? 'renderObj' : '';
         $renderObjConf = $conf['renderObj.'];