diff --git a/includes/tablesort.inc b/includes/tablesort.inc index b5b5c31d838234e4d4de7690391a77adfcb4717d..83230c427bb935fce72603c565d8d180696d13d3 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']; } }