From 0a11c5525a63b0ea68f3b725c486f5968b0dd181 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 5 Aug 2023 13:55:34 +0000 Subject: [PATCH] Fixed oversight regarding RNG ordering of user list. --- src/Users/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Users/Users.php b/src/Users/Users.php index 7e9e091..b19edfa 100644 --- a/src/Users/Users.php +++ b/src/Users/Users.php @@ -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)