From 132911c884c87fcea84c9c278f03903d191e76c2 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 10 Jul 2003 06:42:44 +0000 Subject: [PATCH] Force unique entries in list --- mod/chat/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 93e7687ff8..df47ca55b2 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -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 -- 2.39.5