Skip to content
Permalink
Browse files

MDL-33194 forum: correct number of parameters for get_record()

  • Loading branch information...
mackensen committed May 22, 2012
1 parent 4f7f2a8 commit 4cd5ae4f00f2b2507fe20fc1c571a85c020816e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/subscribe.php
@@ -62,7 +62,7 @@
if (!has_capability('mod/forum:managesubscriptions', $context)) {
print_error('nopermissiontosubscribe', 'forum');
}
$user = $DB->get_record('user', array('id' => $user), MUST_EXIST);
$user = $DB->get_record('user', array('id' => $user), '*', MUST_EXIST);
} else {
$user = $USER;
}

0 comments on commit 4cd5ae4

Please sign in to comment.
You can’t perform that action at this time.