- Patch #7967 by matthias: small patch to improve the robustness of the tablesorting code.
parent
9281831998
commit
7f32eb1f1e
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue