[TYPO3-core] bug in getBorderAttr()

Bernhard Kraft kraftb at kraftb.at
Thu Oct 20 23:50:49 CEST 2005


rupert germann wrote:

> +		if (!(t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2',$GLOBALS['TSFE']->config['config']['doctype']) || $GLOBALS['TSFE']->config['config']['disableImgBorderAttr'])) {

Didn't test for syntax errors, but if what you want to achieve that the border attr doesn't get returned when:
either doctype is set to an XHTML type
OR
disableImgBorderAttr is set

then it looks okay for me ...


 > -		if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2',$GLOBALS['TSFE']->config['config']['doctype']) || 
!$GLOBALS['TSFE']->config['config']['disableImgBorderAttr']) {

PS: Did you know that:
!a || !b == !(a && b)


greets,
Bernhard



More information about the TYPO3-team-core mailing list