Index: typo3/sysext/cms/tslib/content/class.tslib_content_cleargif.php
===================================================================
--- typo3/sysext/cms/tslib/content/class.tslib_content_cleargif.php (revision 9214)
+++ typo3/sysext/cms/tslib/content/class.tslib_content_cleargif.php (revision )
@@ -42,19 +42,37 @@
* @return string Output
*/
public function render($conf = array()) {
- $w = $this->cObj->stdWrap($conf['width'], $conf['width.']);
- $h = $this->cObj->stdWrap($conf['height'], $conf['height.']);
- $w = $w ? $w : 1;
- $h = $h ? $h : 1;
- $wrap = $conf['wrap'] ? $conf['wrap'] : '|
';
+ $width = isset($conf['width.']) ?
+ $this->cObj->stdWrap($conf['width'], $conf['width.'])
+ : $conf['width'];
+ $width = $width ?
+ $width
+ : 1;
+ $height = isset($conf['height.']) ?
+ $this->cObj->stdWrap($conf['height'], $conf['height.'])
+ : $conf['height'];
+ $height = $height ?
+ $height
+ : 1;
+ $wrap = isset($conf['wrap']) ? (
+ isset($conf['wrap.']) ?
+ $this->cObj->stdWrap($conf['wrap'], $conf['wrap.'])
+ : $conf['wrap']
+ )
+ : '|
';
$theValue = $this->cObj->wrap(
- '
cObj->getBorderAttr(' border="0"') . ' alt="" title="" />',
- $wrap
- );
-
- return $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
+ '
cObj->getBorderAttr(' border="0"') . '
+ alt="" />',
+ $wrap);
+ if (isset($conf['stdWrap.'])) {
+ $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
- }
+ }
+ return $theValue;
+ }
}