MDL-21235 input select improved BC

This commit is contained in:
Petr Skoda 2010-01-16 17:39:50 +00:00
parent 3ff163c597
commit 3750c3bdb4

View file

@ -447,6 +447,10 @@ class html_writer {
}
}
$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