mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Fixing a notice: $this->footer wasn't always set.
This doesn't happen in 1.5 so it must have been a regression.
This commit is contained in:
parent
fdc36b2f98
commit
c7d6e27451
@ -49,10 +49,11 @@ class block_rss_client extends block_base {
|
||||
}
|
||||
|
||||
$this->content = new stdClass;
|
||||
|
||||
$this->content->text = '';
|
||||
$this->content->footer = '';
|
||||
|
||||
if (empty($this->instance)) {
|
||||
// We're being asked for content without an associated instance
|
||||
$this->content->text = '';
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user