More use of SITEID
authorstronk7 <stronk7>
Wed, 29 Sep 2004 15:20:32 +0000 (15:20 +0000)
committerstronk7 <stronk7>
Wed, 29 Sep 2004 15:20:32 +0000 (15:20 +0000)
Merged from MOODLE_14_STABLE

blocks/admin/block_admin.php

index 4f9ec221da885835d851ca20ab915fd26c67e390..14abd03a3fbbc21719e14eea455c015f68f66fd7 100644 (file)
@@ -21,7 +21,7 @@ class CourseBlock_admin extends MoodleBlock {
 
         if (empty($this->course)) {
             $this->content = '';
-        } else if ($this->course->category == 0) {
+        } else if ($this->course->id == SITEID) {
             $this->load_content_for_site();
         } else {
             $this->load_content_for_course();