Skip to content

Commit

Permalink
No need to get all the user data for forum_subscribed_users
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 17, 2003
1 parent bbf9b16 commit 06cffaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -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'
Expand Down

0 comments on commit 06cffaf

Please sign in to comment.