MDL-50958 block_messages: declare missing stdClass object

This commit is contained in:
Bruce Silver
2015-08-21 11:30:39 +08:00
committed by Simey Lameze
parent ef176837dc
commit 072ff98b64
+2
View File
@@ -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');
}