projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf9b16
)
No need to get all the user data for forum_subscribed_users
author
moodler
<moodler>
Sat, 17 May 2003 06:13:38 +0000
(06:13 +0000)
committer
moodler
<moodler>
Sat, 17 May 2003 06:13:38 +0000
(06:13 +0000)
mod/forum/lib.php
patch
|
blob
|
history
diff --git
a/mod/forum/lib.php
b/mod/forum/lib.php
index ae7e4ae46292eec06501ab8401d70ce9e7177a7e..8fc2a1b45e02df43163cf26812ee201f54afdc01 100644
(file)
--- a/
mod/forum/lib.php
+++ b/
mod/forum/lib.php
@@
-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'