Fixed oversight regarding RNG ordering of user list.

This commit is contained in:
flash 2023-08-05 13:55:34 +00:00
parent d4f6990e8a
commit 0a11c5525a

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)