From 4153708fd96bd3574a3cc65ba4c0b83438283b41 Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 25 May 2004 10:01:41 +0000 Subject: [PATCH] If a block forgets to set the footer, we won't get a warning in debug mode. --- blocks/moodleblock.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 77b506e447ef5..49038d9f9c3c4 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -58,6 +58,9 @@ function print_block() { } $this->get_content(); + if(!isset($this->content->footer)) { + $this->content->footer = ''; + } switch($this->content_type) { case BLOCK_TYPE_NUKE: