cast values when comparing.
This commit is contained in:
parent
563568fbfe
commit
c9a4f5ea2f
|
@ -446,7 +446,7 @@ protected static function option($value, $display, $selected)
|
|||
}
|
||||
else
|
||||
{
|
||||
$selected = ($value == $selected) ? 'selected' : null;
|
||||
$selected = ((string) $value == (string) $selected) ? 'selected' : null;
|
||||
}
|
||||
|
||||
$attributes = array('value' => HTML::entities($value), 'selected' => $selected);
|
||||
|
|
Loading…
Reference in New Issue