Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content

should mean "if they have no content AND no footer".
This commit is contained in:
defacer
2004-04-20 08:38:56 +00:00
parent 48f508ab94
commit d7baeddac5
+2 -2
View File
@@ -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()) {