Arreglado

Former-commit-id: a77d86dac7913a7f0f7bf7173eb67eb8609920ed
This commit is contained in:
marcos.alconada 2019-03-07 12:37:50 +01:00
parent f26593dc21
commit 39974a1780
1 changed files with 3 additions and 1 deletions

View File

@ -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)