summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/tablesort.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index afa5a6979..b2b122f90 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 (isset($header['sort'])) {
+ if (is_array($header) && isset($header['sort'])) {
return $header['sort'];
}
}