]> git.mjollnir.org Git - moodle.git/commitdiff
Changed ($course) to ($this->course) in if condition to allow course to be checked
authorselliott <selliott>
Wed, 11 Aug 2004 11:19:09 +0000 (11:19 +0000)
committerselliott <selliott>
Wed, 11 Aug 2004 11:19:09 +0000 (11:19 +0000)
blocks/admin/block_admin.php

index 12fc3238ca0bb371452a2979e6b1c8781de468ef..da84d258c4db678790943682d6666625bd0b1444 100644 (file)
@@ -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()) {