From fd602f4620a47c0dbae309e837463daf4f7d5995 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 14 Mar 2011 01:37:28 +0100 Subject: [PATCH] MDL-9376 fix minor global use --- mod/forum/lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 3d44c81ab38..d73a6fb2c55 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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)) { -- 2.11.4.GIT