From ea17f398117dff7ff682d06b3a819518f4c98fdb Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 15 Oct 2004 22:16:00 +0000 Subject: Tablesort used to output class=" active" for active columns with other properties (align="right"). Now it correctly uses class="foo active" if a class 'foo' was specified, and class="active" otherwise. --- includes/tablesort.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/tablesort.inc b/includes/tablesort.inc index d41c3aab3..43edc5fc3 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -112,7 +112,12 @@ function tablesort_header($cell, $header, $ts) { function tablesort_cell($cell, $header, $ts, $i) { if ($header[$i]['data'] == $ts['name'] && $header[$i]['field']) { if (is_array($cell)) { - $cell['class'] .= ' active'; + if (isset($cell['class'])) { + $cell['class'] .= ' active'; + } + else { + $cell['class'] = 'active'; + } } else { $cell = array('data' => $cell, 'class' => 'active'); -- cgit v1.2.3