From: toyomoyo Date: Thu, 20 Apr 2006 07:34:06 +0000 (+0000) Subject: just in case of there's no course X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e080039ebe77cbecc21c0f5b1a478eac401ebb63;p=moodle.git just in case of there's no course --- diff --git a/blocks/blog_menu/block_blog_menu.php b/blocks/blog_menu/block_blog_menu.php index d67bf72253..3c8cc5e80e 100755 --- a/blocks/blog_menu/block_blog_menu.php +++ b/blocks/blog_menu/block_blog_menu.php @@ -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;