Added cast to string in choose_from_menu_nested as well as choose_from_menu
This commit is contained in:
+1
-1
@@ -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 === '') {
|
||||
|
||||
Reference in New Issue
Block a user