Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c4f5ec20dbcb3bb8793ad2469179c73a68770411 1 parent 093e1ce
@mackensen mackensen authored danpoltawski committed
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.