Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit c4f5ec20dbcb3bb8793ad2469179c73a68770411 1 parent 093e1ce
Charles Fulton authored May 22, 2012 danpoltawski committed May 28, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/forum/subscribe.php
2  mod/forum/subscribe.php
@@ -62,7 +62,7 @@
62 62
     if (!has_capability('mod/forum:managesubscriptions', $context)) {
63 63
         print_error('nopermissiontosubscribe', 'forum');
64 64
     }
65  
-    $user = $DB->get_record('user', array('id' => $user), MUST_EXIST);
  65
+    $user = $DB->get_record('user', array('id' => $user), '*', MUST_EXIST);
66 66
 } else {
67 67
     $user = $USER;
68 68
 }

0 notes on commit c4f5ec2

Please sign in to comment.
Something went wrong with that request. Please try again.