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,25 +42,47 @@
* @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'];
+ if(!$width)
+ $width = 1;
+
+ $height = isset($conf['height.'])
+ ? $this->cObj->stdWrap($conf['height'], $conf['height.'])
+ : $conf['height'];
+ if(!$height)
+ $height = 1;
+
+ $wrap = isset($conf['wrap.'])
+ ? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.'])
+ : $conf['wrap'];
+ if(!$wrap)
+ $wrap = '|
';
+
$theValue = $this->cObj->wrap(
- 'cObj->getBorderAttr(' border="0"') . ' alt="" title="" />',
- $wrap
- );
+ 'cObj->getBorderAttr(' border="0"') . '
+ alt="" />',
+ $wrap);
- return $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
+ if (isset($conf['stdWrap.'])) {
+ $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
- }
+ }
+ return $theValue;
+
-}
+ }
+}
+
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_cleargif.php']) {
include_once ($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_cleargif.php']);
}
-?>
+?>
\ No newline at end of file