[BUGFIX] Remove class of td if "No CSS styles for this table" is set
authorJuergen Furrer <juergen.furrer@gmail.com>
Tue, 5 Jun 2012 18:05:14 +0000 (20:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 30 Jun 2012 12:23:25 +0000 (14:23 +0200)
Change-Id: I75f1a27b4ef1a94831d6d80f8d0d8d649fc8d1ca
Fixes: #37618
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12469
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php

index 2ce30fa..f7cc0a7 100755 (executable)
@@ -191,7 +191,7 @@ class tx_cssstyledcontent_pi1 extends tslib_pibase {
                                        }
 
                                        if (!strcmp(trim($cells[$a]),''))       $cells[$a]='&nbsp;';
-                                       $cellAttribs = ($noStyles?'':($a>0 && ($cols-1)==$a) ? ' class="td-last td-'.$a.'"' : ' class="td-'.$a.'"');
+                                       $cellAttribs = ($noStyles ? '' : (($a > 0 && ($cols - 1) == $a) ? ' class="td-last td-' . $a . '"' : ' class="td-' . $a . '"'));
                                        if (($headerPos == 'top' && !$k) || ($headerPos == 'left' && !$a))      {
                                                $scope = ' scope="'.$headerScope.'"';
                                                $scope .= ' id="'.$headerIdPrefix.(($headerScope=='col')?$a:$k).'"';