mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-42592 mod_chat: passed additional name fields to be used by the fullname function
This commit is contained in:
parent
2dd8e9357f
commit
2072af6c1d
@ -360,7 +360,8 @@ function chat_print_recent_activity($course, $viewfullnames, $timestart) {
|
||||
$groupselect = "";
|
||||
}
|
||||
|
||||
if (!$users = $DB->get_records_sql("SELECT u.id, u.firstname, u.lastname, u.email, u.picture
|
||||
$userfields = user_picture::fields('u');
|
||||
if (!$users = $DB->get_records_sql("SELECT $userfields
|
||||
FROM {course_modules} cm
|
||||
JOIN {chat} ch ON ch.id = cm.instance
|
||||
JOIN {chat_users} chu ON chu.chatid = ch.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user