diff options
Diffstat (limited to 'includes')
-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 51943e403..33308ec05 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -16,7 +16,7 @@ function tablesort_pager() { function tablesort_sql($header) { $ts = tablesort_init($header); - if ($ts['field']) { + if ($ts['sql']) { $sql = check_query($ts['sql']); $sort = strtoupper(check_query($ts['sort'])); return " ORDER BY $sql $sort"; |