summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-25 05:03:03 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-25 05:03:03 +0000
commit7f32eb1f1eb9baceb38a9a2efa993d66c3938c94 (patch)
tree1a7753e7b4880e3ad473d67482d19e94aeccf39f
parent9281831998fd71f4791904c2c3b419e0d4e799ce (diff)
downloadbrdo-7f32eb1f1eb9baceb38a9a2efa993d66c3938c94.tar.gz
brdo-7f32eb1f1eb9baceb38a9a2efa993d66c3938c94.tar.bz2
- Patch #7967 by matthias: small patch to improve the robustness of the tablesorting code.
-rw-r--r--includes/tablesort.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index b5b5c31d8..83230c427 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -95,7 +95,7 @@ function tablesort_get_sort($headers) {
// user has not specified a sort. check module for default and if none, use 'asc'
else {
foreach ($headers as $header) {
- if (isset($header['sort'])) {
+ if (is_array($header) && isset($header['sort'])) {
return $header['sort'];
}
}