From f39b489656a97250e62da2142902c875ec40461e Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 10 May 2004 15:15:44 +0000 Subject: [PATCH] Print footers in side_blocks even when non-list $content is supplied --- course/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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
"; -- 2.39.5