? weblib-patch.txt Index: lib/weblib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v retrieving revision 1.1124 diff -u -a -w -b -B -r1.1124 weblib.php --- lib/weblib.php 7 Aug 2008 22:38:46 -0000 1.1124 +++ lib/weblib.php 13 Aug 2008 23:49:52 -0000 @@ -1101,7 +1101,13 @@ } if ($nothing != '') { - $output .= " \n"; + $selectlabeloption = ''; + if($selected=='') + $selectlabeloption = ' selected="selected"'; + for($options as $value => $label) { //if one of the options is the empty value, don't make this the default + if($value == '') $selected = ''; + } + $output .= " \n"; } $inoptgroup = false;