From 081cce73259a1a6a624497ff51fc37569298a265 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 15 Dec 2008 06:08:51 +0000 Subject: [PATCH] forum subscriptions: MDL-14876 - followup - use the right table prefix on column names to avoid an ambiguous column name error. --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f2dd41a816b..caae6c34567 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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); }