mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
just in case of there's no course
This commit is contained in:
parent
8de65352a4
commit
e080039ebe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user