From: poltawski Date: Tue, 16 Sep 2008 21:32:09 +0000 (+0000) Subject: MDL-16542 - missing global $USER X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=83199e454e4234853d40e825e901b1ddbc550830;p=moodle.git MDL-16542 - missing global $USER --- 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('', '');