summaryrefslogtreecommitdiff
path: root/includes/tablesort.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/tablesort.inc')
-rw-r--r--includes/tablesort.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index eb1415615..f976eb512 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -66,7 +66,12 @@ function tablesort_header($cell, $header, $ts) {
$title = t('sort by @s', array('@s' => $cell['data']));
if ($cell['data'] == $ts['name']) {
$ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc');
- $cell['class'] = 'active';
+ if (isset($cell['class'])) {
+ $cell['class'] .= ' active';
+ }
+ else {
+ $cell['class'] = 'active';
+ }
$image = theme('tablesort_indicator', $ts['sort']);
}
else {