summaryrefslogtreecommitdiff
path: root/includes/tablesort.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/tablesort.inc')
-rw-r--r--includes/tablesort.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 960bd2f0d..afa5a6979 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -80,7 +80,7 @@ class TableSort extends SelectQueryExtender {
// User has not specified a sort. Use default if specified; otherwise use "asc".
else {
foreach ($this->header as $header) {
- if (is_array($header) && array_key_exists('sort', $header)) {
+ if (isset($header['sort'])) {
return $header['sort'];
}
}
@@ -279,7 +279,7 @@ function tablesort_get_sort($headers) {
// User has not specified a sort. Use default if specified; otherwise use "asc".
else {
foreach ($headers as $header) {
- if (is_array($header) && array_key_exists('sort', $header)) {
+ if (isset($header['sort'])) {
return $header['sort'];
}
}