mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
forum subscriptions: MDL-14876 - followup - use the right table prefix on column names to avoid an ambiguous column name error.
This commit is contained in:
parent
b1bc126319
commit
081cce7325
@ -89,7 +89,7 @@ function forum_add_instance($forum) {
|
||||
/// stage. However, because the forum is brand new, we know that there are
|
||||
/// no role assignments or overrides in the forum context, so using the
|
||||
/// course context gives the same list of users.
|
||||
$users = forum_get_potential_subscribers(get_context_instance(CONTEXT_COURSE, $forum->course), 0, 'id, email', '');
|
||||
$users = forum_get_potential_subscribers(get_context_instance(CONTEXT_COURSE, $forum->course), 0, 'u.id, u.email', '');
|
||||
foreach ($users as $user) {
|
||||
forum_subscribe($user->id, $forum->id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user