From 78f79295ac8daf53f19a9456f01adbcb49da31b6 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 18 Mar 2014 21:53:45 -0700 Subject: More memberlist edits --- includes/chats.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes/chats.php') 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(); -- cgit v1.2.3