From 3c50b9c26f25dbc5fd41987bf4674415f7d6a9a2 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 2 Jun 2004 13:53:44 +0000 Subject: - Fixed tablesort_sql() so it returns the proper order by sql. --- includes/tablesort.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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"; -- cgit v1.2.3