]> git.mjollnir.org Git - moodle.git/commitdiff
just in case of there's no course
authortoyomoyo <toyomoyo>
Thu, 20 Apr 2006 07:34:06 +0000 (07:34 +0000)
committertoyomoyo <toyomoyo>
Thu, 20 Apr 2006 07:34:06 +0000 (07:34 +0000)
blocks/blog_menu/block_blog_menu.php

index d67bf722535dafa839bba07aee72e06d096a531b..3c8cc5e80e82402391053a575421fda24f12577b 100755 (executable)
@@ -10,7 +10,11 @@ class block_blog_menu extends block_base {
     
     function get_content() {
         global $CFG, $course;
-        
+
+        if (!isset($course)) {
+            $course = SITEID;
+        }
+
         if ($CFG->bloglevel < 1) {
             $this->content->text = '';
             return $this->content;