Skip to content

Commit

Permalink
MDL-9376 fix minor global use
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 14, 2011
1 parent fb7abd4 commit fd602f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4642,8 +4642,7 @@ function forum_user_can_see_discussion($forum, $discussion, $context, $user=NULL
*
*/
function forum_user_can_see_post($forum, $discussion, $post, $user=NULL, $cm=NULL) {
global $USER;
global $CFG;
global $CFG, $USER;

// retrieve objects (yuk)
if (is_numeric($forum)) {
Expand Down

0 comments on commit fd602f4

Please sign in to comment.