Fix admin user list with wrong sortable column - refs BT#20104

pull/4362/head
Angel Fernando Quiroz Campos 4 years ago committed by GitHub
parent a2f00c5870
commit 48e4213071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      main/admin/user_list.php

@ -479,6 +479,11 @@ function get_user_data($from, $number_of_items, $column, $direction)
$from = (int) $from;
$number_of_items = (int) $number_of_items;
if (in_array($column, [0, 1, 11])) {
$column = 3;
$direction = 'ASC';
}
$sql .= " ORDER BY col$column $direction ";
$sql .= " LIMIT $from, $number_of_items";

Loading…
Cancel
Save