small fix to not set the css class of templates or grids in a cell twice, it is not good for border

This commit is contained in:
Ralf Becker 2005-05-25 15:09:47 +00:00
parent e435c63ad7
commit 266949f632

View File

@ -574,7 +574,11 @@
$row_data[".$col"] .= $this->html->formatOptions($cell['align']?$cell['align']:'left','align');
$cl = $this->expand_name(isset($this->class_conf[$cl]) ? $this->class_conf[$cl] : $cl,
$c,$r,$show_c,$show_row,$content);
$row_data[".$col"] .= $this->html->formatOptions($cl,'class');
// else the class is set twice, in the table and the table-cell, which is not good for borders
if ($cl && $cell['type'] != 'template' && $cell['type'] != 'grid')
{
$row_data[".$col"] .= $this->html->formatOptions($cl,'class');
}
}
$rows[$row] = $row_data;
}