]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11397 bug with IE 6 not displaying anonymous results correctly.
authordanmarsden <danmarsden>
Wed, 24 Oct 2007 21:27:26 +0000 (21:27 +0000)
committerdanmarsden <danmarsden>
Wed, 24 Oct 2007 21:27:26 +0000 (21:27 +0000)
 - also fix for XHTML Strict.

mod/choice/lib.php

index 3925714c7744da3e8cfc15b42a4f50b328735467..5c36cee124943f80448583a47127c9fce338121e 100644 (file)
@@ -226,7 +226,7 @@ function choice_show_form($choice, $user, $cm) {
         echo "<input type=\"submit\" value=\"".get_string("savemychoice","choice")."\" />";
         
         if ($choice->allowupdate && $aaa = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $user->id)) {
-            echo "<br /><a href='view.php?id=".$cm->id."&action=delchoice'>".get_string("removemychoice","choice")."</a>";
+            echo "<br /><a href='view.php?id=".$cm->id."&amp;action=delchoice'>".get_string("removemychoice","choice")."</a>";
         }
         
     } else {
@@ -531,7 +531,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
                 if ($maxcolumn) {
                     $height = $COLUMN_HEIGHT * ((float)$column[$optionid] / (float)$maxcolumn);
                 }
-                echo "<td valign=\"bottom\" align=\"center\" class=\"col$count data\">";
+                echo "<td style=\"vertical-align:bottom\" align=\"center\" class=\"col$count data\">";
                 echo "<img src=\"column.png\" height=\"$height\" width=\"49\" alt=\"\" />";
                 echo "</td>";
                 $count++;