small bug fix: $USER was not laoded in course admin block

This commit is contained in:
gustav_delius 2004-06-09 22:00:51 +00:00
parent 893a32463b
commit 9cb883d53d

View File

@ -13,7 +13,6 @@ class CourseBlock_admin extends MoodleBlock {
}
function get_content() {
global $USER, $CFG, $THEME;
if($this->content !== NULL) {
return $this->content;
@ -67,7 +66,7 @@ class CourseBlock_admin extends MoodleBlock {
}
function load_content_for_course() {
global $CFG;
global $CFG, $USER;
require_once($CFG->dirroot.'/mod/forum/lib.php');
if (isguest()) {