summaryrefslogtreecommitdiffstats
path: root/includes/chats.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2014-03-18 21:53:45 -0700
committerPatrick Davison <snapwilliam@gmail.com>2014-03-18 21:53:45 -0700
commit78f79295ac8daf53f19a9456f01adbcb49da31b6 (patch)
tree556d35945c43498cda83977216bbd594495f6c63 /includes/chats.php
parent640816989a99e069397ed18f3fa703d1ec12d596 (diff)
downloadpathery-78f79295ac8daf53f19a9456f01adbcb49da31b6.tar.xz
More memberlist edits
Diffstat (limited to 'includes/chats.php')
-rw-r--r--includes/chats.php5
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();