mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
No need to get all the user data for forum_subscribed_users
This commit is contained in:
parent
bbf9b1624d
commit
06cffaf0bb
@ -672,7 +672,8 @@ function forum_subscribed_users($course, $forum) {
|
||||
return get_site_users();
|
||||
}
|
||||
}
|
||||
return get_records_sql("SELECT u.*
|
||||
return get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.maildisplay,
|
||||
u.email, u.city, u.country, u.lastaccess, u.lastlogin, u.picture
|
||||
FROM {$CFG->prefix}user u,
|
||||
{$CFG->prefix}forum_subscriptions s
|
||||
WHERE s.forum = '$forum->id'
|
||||
|
Loading…
x
Reference in New Issue
Block a user