Added cast to string in choose_from_menu_nested as well as choose_from_menu

This commit is contained in:
mjollnir_
2006-01-16 21:50:57 +00:00
parent 21ee1ca9f7
commit f332bd025c
+1 -1
View File
@@ -739,7 +739,7 @@ function choose_from_menu_nested($options,$name,$selected='',$nothing='choose',$
$output .= ' <optgroup label="'.$section.'">'."\n";
foreach ($values as $value => $label) {
$output .= ' <option value="'. $value .'"';
if ($value == $selected) {
if ((string)$value == (string)$selected) {
$output .= ' selected="selected"';
}
if ($label === '') {