]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16542 - missing global $USER
authorpoltawski <poltawski>
Tue, 16 Sep 2008 21:32:09 +0000 (21:32 +0000)
committerpoltawski <poltawski>
Tue, 16 Sep 2008 21:32:09 +0000 (21:32 +0000)
mod/forum/lib.php

index 0b78cccbec28e774abc9dcc5b266d6a63fe67a11..623354ba2b61d3f97d087c8dc0decc1f15a0d9a0 100644 (file)
@@ -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('', '');