- Patch #7967 by matthias: small patch to improve the robustness of the tablesorting code.

4.5.x
Dries Buytaert 2004-05-25 05:03:03 +00:00
parent 9281831998
commit 7f32eb1f1e
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}
}