Print footers in side_blocks even when non-list $content is supplied

This commit is contained in:
moodler
2004-05-10 15:15:44 +00:00
parent 56e29ea0f4
commit f39b489656
+2 -1
View File
@@ -1032,6 +1032,7 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo
if ($content) {
echo "$content";
echo "<font size=\"-1\">$footer</font>";
} else {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">";
if ($list) {
@@ -1049,7 +1050,7 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo
if ($icons) {
echo "<td class=\"sideblocklinks\" valign=\"top\" width=\"16\">&nbsp;</td>";
}
echo "<td class=\"sideblocklinks\"><font size=\"-1\">$footer</td>";
echo "<td class=\"sideblocklinks\"><font size=\"-1\">$footer</font></td>";
echo "</tr>";
}
echo "</table>";