summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/tablesort.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 0ba06f196..040858643 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -71,7 +71,7 @@ function tablesort_get_order($headers) {
}
else {
// The first column specified is initial 'order by' field unless otherwise specified
- $first = reset($header);
+ $first = reset($headers);
return $first['data'];
}
}