diff options
-rw-r--r-- | includes/tablesort.inc | 7 |
1 files changed, 6 insertions, 1 deletions
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'); |