Commit 3c50b9c2 authored by Kjartan's avatar Kjartan
Browse files

- Fixed tablesort_sql() so it returns the proper order by sql.

parent cd48e69b
......@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment