From 266949f632476181a536f27d2108e30ddf9bd646 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 May 2005 15:09:47 +0000 Subject: [PATCH] small fix to not set the css class of templates or grids in a cell twice, it is not good for border --- etemplate/inc/class.uietemplate.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index dfe8a9c4aa..89f10dc90f 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -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; }