mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-13 21:06:43 +00:00
remove empty option when allow-empty is set
This commit is contained in:
parent
be71795fc5
commit
2db5c33fa6
|
|
@ -1197,8 +1197,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo ' '.$a[0].'="'.$a[1].'"';
|
||||
echo ">";
|
||||
if(isset($value['options']) && is_array($value['options'])) {
|
||||
if($allowempty)
|
||||
echo "<option value=\"\"></option>";
|
||||
// if($allowempty)
|
||||
// echo "<option value=\"\"></option>";
|
||||
foreach($value['options'] as $val) {
|
||||
if(is_string($val)) {
|
||||
echo '<optgroup label="'.$val.'">';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user