Arreglado
Former-commit-id: a77d86dac7913a7f0f7bf7173eb67eb8609920ed
This commit is contained in:
parent
f26593dc21
commit
39974a1780
|
@ -518,7 +518,7 @@ function html_print_select(
|
||||||
$selected='',
|
$selected='',
|
||||||
$script='',
|
$script='',
|
||||||
$nothing='',
|
$nothing='',
|
||||||
$nothing_value=none,
|
$nothing_value=0,
|
||||||
$return=false,
|
$return=false,
|
||||||
$multiple=false,
|
$multiple=false,
|
||||||
$sort=true,
|
$sort=true,
|
||||||
|
@ -623,6 +623,8 @@ function html_print_select(
|
||||||
$output .= 'selected ';
|
$output .= 'selected ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$output .= 'value="'.$value.'"';
|
||||||
|
|
||||||
if (is_array($selected) && in_array($value, $selected)) {
|
if (is_array($selected) && in_array($value, $selected)) {
|
||||||
$output .= ' selected="selected"';
|
$output .= ' selected="selected"';
|
||||||
} else if (is_numeric($value) && is_numeric($selected)
|
} else if (is_numeric($value) && is_numeric($selected)
|
||||||
|
|
Loading…
Reference in New Issue