Merge branch 'MDL-25971' of git://github.com/timhunt/moodle

This commit is contained in:
Sam Hemelryk 2011-01-17 15:12:18 +08:00
commit c4592a2ac0

View file

@ -1038,6 +1038,12 @@ class html_writer {
$attributes['name'] = $name; $attributes['name'] = $name;
if (!empty($attributes['disabled'])) {
$attributes['disabled'] = 'disabled';
} else {
unset($attributes['disabled']);
}
$output = ''; $output = '';
foreach ($options as $value=>$label) { foreach ($options as $value=>$label) {
if (is_array($label)) { if (is_array($label)) {