mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-25971' of git://github.com/timhunt/moodle
This commit is contained in:
commit
c4592a2ac0
1 changed files with 6 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue