From: tjhunt Date: Mon, 15 Dec 2008 06:08:51 +0000 (+0000) Subject: forum subscriptions: MDL-14876 - followup - use the right table prefix on column... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=081cce73259a1a6a624497ff51fc37569298a265;p=moodle.git forum subscriptions: MDL-14876 - followup - use the right table prefix on column names to avoid an ambiguous column name error. --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f2dd41a816..caae6c3456 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); }