From: selliott Date: Wed, 11 Aug 2004 11:19:09 +0000 (+0000) Subject: Changed ($course) to ($this->course) in if condition to allow course to be checked X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a1931e61d5a875e65496e1c54b7e6d3afa3a3cda;p=moodle.git Changed ($course) to ($this->course) in if condition to allow course to be checked --- diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 12fc3238ca..da84d258c4 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -23,7 +23,7 @@ class CourseBlock_admin extends MoodleBlock { $this->content->icons = array(); $this->content->footer = ''; - if (empty($course)) { + if (empty($this->course)) { $this->content = ''; } else if ($this->course->category == 0) { $this->load_content_for_site(); @@ -68,6 +68,7 @@ class CourseBlock_admin extends MoodleBlock { function load_content_for_course() { global $CFG, $USER; + require_once($CFG->dirroot.'/mod/forum/lib.php'); if (isguest()) {