]> git.mjollnir.org Git - moodle.git/commitdiff
forum subscriptions: MDL-14876 - followup - use the right table prefix on column...
authortjhunt <tjhunt>
Mon, 15 Dec 2008 06:08:51 +0000 (06:08 +0000)
committertjhunt <tjhunt>
Mon, 15 Dec 2008 06:08:51 +0000 (06:08 +0000)
mod/forum/lib.php

index f2dd41a816b29b6b76bf87be3fb269502df06e18..caae6c3456741052511f1ab48a7f637bb76ae5c4 100644 (file)
@@ -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);
         }