Permalink
Browse files

POssible fix for bug 1109

  • Loading branch information...
moodler
moodler committed Mar 9, 2004
1 parent 39f3478 commit b20ee40745dbeb01c4f571a922dd0713dc0c11fe
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/chat/lib.php
View
@@ -201,12 +201,11 @@ function chat_get_users($chatid, $groupid=0) {
$groupselect = "";
}
- return get_records_sql("SELECT u.id, u.firstname, u.lastname, u.picture, c.lastmessageping
+ return get_records_sql("SELECT DISTINCT u.id, u.firstname, u.lastname, u.picture, c.lastmessageping
FROM {$CFG->prefix}chat_users c,
{$CFG->prefix}user u
WHERE c.chatid = '$chatid'
AND u.id = c.userid $groupselect
- GROUP BY u.id
ORDER BY c.firstping ASC");
}

0 comments on commit b20ee40

Please sign in to comment.