just in case of there's no course

This commit is contained in:
toyomoyo 2006-04-20 07:34:06 +00:00
parent 8de65352a4
commit e080039ebe

View File

@ -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;