From: defacer Date: Tue, 25 May 2004 10:01:41 +0000 (+0000) Subject: If a block forgets to set the footer, we won't get a warning in debug mode. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4153708fd96bd3574a3cc65ba4c0b83438283b41;p=moodle.git If a block forgets to set the footer, we won't get a warning in debug mode. --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 77b506e447..49038d9f9c 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -58,6 +58,9 @@ class MoodleBlock { } $this->get_content(); + if(!isset($this->content->footer)) { + $this->content->footer = ''; + } switch($this->content_type) { case BLOCK_TYPE_NUKE: