diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-05-25 05:03:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-05-25 05:03:03 +0000 |
commit | 7f32eb1f1eb9baceb38a9a2efa993d66c3938c94 (patch) | |
tree | 1a7753e7b4880e3ad473d67482d19e94aeccf39f | |
parent | 9281831998fd71f4791904c2c3b419e0d4e799ce (diff) | |
download | brdo-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.inc | 2 |
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']; } } |