From: defacer Date: Tue, 20 Apr 2004 08:38:56 +0000 (+0000) Subject: Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d7baeddac5532c222661dc09f0f94bfdb1730f61;p=moodle.git Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content should mean "if they have no content AND no footer". --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index b515b8d8fb..7a2e5b6fd1 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -60,7 +60,7 @@ class MoodleBlock { switch($this->content_type) { case BLOCK_TYPE_TEXT: - if(empty($this->content->text)) { + if(empty($this->content->text) && empty($this->content->footer)) { break; } if ($this->edit_controls !== NULL || !$this->hide_header()) { @@ -70,7 +70,7 @@ class MoodleBlock { } break; case BLOCK_TYPE_LIST: - if(empty($this->content->items)) { + if(empty($this->content->items) && empty($this->content->footer)) { break; } if ($this->edit_controls !== NULL || !$this->hide_header()) {