MDL-16542 - missing global $USER

This commit is contained in:
poltawski
2008-09-16 21:32:09 +00:00
parent 5a04379a49
commit 83199e454e

View 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('', '');