diff options
Diffstat (limited to 'includes/chats.php')
-rw-r--r-- | includes/chats.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/chats.php b/includes/chats.php index c4a43dc..47ecd39 100644 --- a/includes/chats.php +++ b/includes/chats.php @@ -163,8 +163,8 @@ function getChannelList($channel = 1) { FROM `chatUsers`
LEFT JOIN `users`
ON chatUsers.userID = users.ID
- WHERE chatUsers.dateLastActive > NOW() - INTERVAL 5 MINUTE
- ORDER BY chatUsers.isMod DESC, chatUsers.dateEntered DESC
+
+ ORDER BY chatUsers.isMod DESC, chatUsers.dateEntered ASC
");
$array = array();
if ($res->num_rows == 0) {
@@ -173,6 +173,7 @@ function getChannelList($channel = 1) { }
while ($response = $res->fetch_assoc()) {
$array['users'][] = $response;
+
}
$res->close();
$mysqli->close();
|