diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 0768014827..6a0b3bf5ac 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -518,7 +518,7 @@ function html_print_select( $selected='', $script='', $nothing='', - $nothing_value=none, + $nothing_value=0, $return=false, $multiple=false, $sort=true, @@ -623,6 +623,8 @@ function html_print_select( $output .= 'selected '; } + $output .= 'value="'.$value.'"'; + if (is_array($selected) && in_array($value, $selected)) { $output .= ' selected="selected"'; } else if (is_numeric($value) && is_numeric($selected)