Fixed oversight regarding RNG ordering of user list.
This commit is contained in:
parent
d4f6990e8a
commit
0a11c5525a
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class Users {
|
||||||
$query .= sprintf(' %s user_birthdate LIKE ?', ++$args > 1 ? 'AND' : 'WHERE');
|
$query .= sprintf(' %s user_birthdate LIKE ?', ++$args > 1 ? 'AND' : 'WHERE');
|
||||||
if($hasOrderBy) {
|
if($hasOrderBy) {
|
||||||
$query .= sprintf(' ORDER BY %s', $orderBy[0]);
|
$query .= sprintf(' ORDER BY %s', $orderBy[0]);
|
||||||
if($orderBy !== null)
|
if($orderBy[1] !== null)
|
||||||
$query .= ' ' . ($orderBy[1] ? 'DESC' : 'ASC');
|
$query .= ' ' . ($orderBy[1] ? 'DESC' : 'ASC');
|
||||||
}
|
}
|
||||||
if($hasPagination)
|
if($hasPagination)
|
||||||
|
|
Loading…
Reference in a new issue