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');
|
||||
if($hasOrderBy) {
|
||||
$query .= sprintf(' ORDER BY %s', $orderBy[0]);
|
||||
if($orderBy !== null)
|
||||
if($orderBy[1] !== null)
|
||||
$query .= ' ' . ($orderBy[1] ? 'DESC' : 'ASC');
|
||||
}
|
||||
if($hasPagination)
|
||||
|
|
Loading…
Reference in a new issue