From 83199e454e4234853d40e825e901b1ddbc550830 Mon Sep 17 00:00:00 2001
From: poltawski <poltawski>
Date: Tue, 16 Sep 2008 21:32:09 +0000
Subject: [PATCH] MDL-16542 - missing global $USER

---
 mod/forum/lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index 0b78cccbec..623354ba2b 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -3873,7 +3873,7 @@ function forum_move_attachments($discussion, $forumfrom, $forumto) {
  * @return mixed string or array of (html text withouth images and image HTML)
  */
 function forum_print_attachments($post, $cm, $type) {
-    global $CFG, $DB;
+    global $CFG, $DB, $USER;
 
     if (empty($post->attachment)) {
         return $type !== 'separateimages' ? '' : array('', '');
-- 
2.39.5