Browse files

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

  • Loading branch information...
1 parent 093e1ce commit c4f5ec20dbcb3bb8793ad2469179c73a68770411 @mackensen mackensen committed with danpoltawski May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/subscribe.php
View
2 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 c4f5ec2

Please sign in to comment.