]> git.mjollnir.org Git - moodle.git/commitdiff
Print footers in side_blocks even when non-list $content is supplied
authormoodler <moodler>
Mon, 10 May 2004 15:15:44 +0000 (15:15 +0000)
committermoodler <moodler>
Mon, 10 May 2004 15:15:44 +0000 (15:15 +0000)
course/lib.php

index e9762fbd302e7509545b105a4ec0ca008032e187..398b97841fa7a18de079b891ed303b17667ee488 100644 (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>";