mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Force unique entries in list
This commit is contained in:
parent
7d494f1c2e
commit
132911c884
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue