Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-33194 forum: correct number of parameters for get_record()
  • Loading branch information
mackensen committed May 22, 2012
1 parent 4f7f2a8 commit 4cd5ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/subscribe.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4cd5ae4

Please sign in to comment.