Skip to content

Commit

Permalink
If a block forgets to set the footer, we won't get a warning in debug…
Browse files Browse the repository at this point in the history
… mode.
  • Loading branch information
defacer committed May 25, 2004
1 parent 8147ca0 commit 4153708
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/moodleblock.class.php
Expand Up @@ -58,6 +58,9 @@ function print_block() {
} }


$this->get_content(); $this->get_content();
if(!isset($this->content->footer)) {
$this->content->footer = '';
}


switch($this->content_type) { switch($this->content_type) {
case BLOCK_TYPE_NUKE: case BLOCK_TYPE_NUKE:
Expand Down

0 comments on commit 4153708

Please sign in to comment.