Fixed oversight regarding RNG ordering of user list.

This commit is contained in:
flash 2023-08-05 13:55:34 +00:00
parent f394f372c1
commit f7bc703b4a

View file

@ -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)