]> git.mjollnir.org Git - moodle.git/commitdiff
Force unique entries in list
authormoodler <moodler>
Thu, 10 Jul 2003 06:42:44 +0000 (06:42 +0000)
committermoodler <moodler>
Thu, 10 Jul 2003 06:42:44 +0000 (06:42 +0000)
mod/chat/lib.php

index 93e7687ff8c7e6c736a3e3f35d5c0a45f6aff563..df47ca55b2a2552bf18574c6bba5c74ebc5fee09 100644 (file)
@@ -98,7 +98,7 @@ function chat_print_recent_activity($course, $isteacher, $timestart) {
 
     global $CFG;
 
-    if (!$chatusers = get_records_sql("SELECT cu.chatid, u.firstname, u.lastname
+    if (!$chatusers = get_records_sql("SELECT u.id, cu.chatid, u.firstname, u.lastname
                                         FROM {$CFG->prefix}chat_users as cu,
                                              {$CFG->prefix}user as u
                                        WHERE cu.userid = u.id