mod/exercise: HTML fixes

Fixed errors in HTML causing parser errors in Firefox when in developers
debug mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
This commit is contained in:
mattc-catalyst 2007-04-16 23:20:39 +00:00
parent 04bc70fc26
commit f8c609e4a9
3 changed files with 23 additions and 22 deletions

View file

@ -101,7 +101,7 @@ function exercise_choose_from_menu ($options, $name, $selected="", $nothing="cho
$javascript = "";
}
$output = "<select name=$name $javascript>\n";
$output = "<select name=\"$name\" $javascript>\n";
if ($nothing) {
$output .= " <option value=\"$nothingvalue\"\n";
if ($nothingvalue == $selected) {