]> git.mjollnir.org Git - moodle.git/commitdiff
fixed empty boxes bug reported in http://moodle.org/mod/forum/discuss.php?d=8432
authorgustav_delius <gustav_delius>
Sat, 29 May 2004 10:35:57 +0000 (10:35 +0000)
committergustav_delius <gustav_delius>
Sat, 29 May 2004 10:35:57 +0000 (10:35 +0000)
blocks/moodleblock.class.php

index 8896a40bf11ea5bcab3b32dc0061181cbd8d6610..4450a434791f674aca0e1728ea5beffe5fbe6b77 100644 (file)
@@ -87,7 +87,7 @@ class MoodleBlock {
                 }
             break;
             case BLOCK_TYPE_LIST:
-                if(empty($this->content->text) && empty($this->content->footer)) {
+                if(empty($this->content->items) && empty($this->content->footer)) {
                     if(empty($this->edit_controls)) {
                         // No content, no edit controls, so just shut up
                         break;