mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-21235 input select improved BC
This commit is contained in:
parent
3ff163c597
commit
3750c3bdb4
1 changed files with 5 additions and 1 deletions
|
@ -447,7 +447,11 @@ class html_writer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$options = $nothing + $options; // keep keys, do not override
|
$options = $nothing + $options; // keep keys, do not override
|
||||||
}
|
|
||||||
|
} else if (is_string($nothing) and $nothing !== '') {
|
||||||
|
// BC
|
||||||
|
$options = array(''=>$nothing) + $options;
|
||||||
|
}
|
||||||
|
|
||||||
// we may accept more values if multiple attribute specified
|
// we may accept more values if multiple attribute specified
|
||||||
$selected = (array)$selected;
|
$selected = (array)$selected;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue