2010-11-06 Steffen Kamper <steffen@typo3.org>
+ * Fixed bug #16187: Optimize stdWrap usage for TypoScript content element CASE (Thanks to Jo Hasenau)
* Fixed bug #16261: Clearing input field using clear icon doesn't get saved. (Thanks to Peter Beernink)
* Fixed bug #16250: prototype methods are used to determine the available viewport dimensions in ExtJS plugins
* Fixed bug #16254: Dead logo function in backend.php
*/
public function render($conf = array()) {
if ($this->cObj->checkIf($conf['if.'])) {
- if ($conf['setCurrent'] || $conf['setCurrent.']) {
- $this->cObj->data[$this->cObj->currentValKey] = $this->cObj->stdWrap($conf['setCurrent'], $conf['setCurrent.']);
+ $setCurrent = isset($conf['setCurrent.']) ? $this->cObj->stdWrap($conf['setCurrent'], $conf['setCurrent.']) : $conf['setCurrent'];
+ if($setCurrent) {
+ $this->cObj->data[$this->cObj->currentValKey] = $setCurrent;
}
- $key = $this->cObj->stdWrap($conf['key'], $conf['key.']);
+ $key = isset($conf['key.']) ? $this->cObj->stdWrap($conf['key'], $conf['key.']) : $conf['key'];
$key = strlen($conf[$key]) ? $key : 'default';
$name = $conf[$key];
$theValue = $this->cObj->cObjGetSingle($name, $conf[$key . '.'], $key);
- if ($conf['stdWrap.']) {
+ if (isset($conf['stdWrap.'])) {
$theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
}
return $theValue;