mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-50958 block_messages: declare missing stdClass object
This commit is contained in:
parent
6d392b3027
commit
88a26baec0
@ -31,7 +31,9 @@ class block_messages extends block_base {
|
||||
global $USER, $CFG, $DB, $OUTPUT;
|
||||
|
||||
if (!$CFG->messaging) {
|
||||
$this->content = new stdClass;
|
||||
$this->content->text = '';
|
||||
$this->content->footer = '';
|
||||
if ($this->page->user_is_editing()) {
|
||||
$this->content->text = get_string('disabled', 'message');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user