From: moodler Date: Mon, 10 May 2004 15:15:44 +0000 (+0000) Subject: Print footers in side_blocks even when non-list $content is supplied X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f39b489656a97250e62da2142902c875ec40461e;p=moodle.git Print footers in side_blocks even when non-list $content is supplied --- diff --git a/course/lib.php b/course/lib.php index e9762fbd30..398b97841f 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1032,6 +1032,7 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo if ($content) { echo "$content"; + echo "$footer"; } else { echo ""; if ($list) { @@ -1049,7 +1050,7 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo if ($icons) { echo ""; } - echo ""; + echo ""; echo ""; } echo "
 $footer$footer
";