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