diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2004-06-02 13:53:44 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2004-06-02 13:53:44 +0000 |
commit | 3c50b9c26f25dbc5fd41987bf4674415f7d6a9a2 (patch) | |
tree | bbfc015324b2d51354335997a211a30391783031 /includes | |
parent | cd48e69b29ebb50699813b3ba92d6fc92793e04f (diff) | |
download | brdo-3c50b9c26f25dbc5fd41987bf4674415f7d6a9a2.tar.gz brdo-3c50b9c26f25dbc5fd41987bf4674415f7d6a9a2.tar.bz2 |
- Fixed tablesort_sql() so it returns the proper order by sql.
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"; |