Commit c9a4f5ea authored by Taylor Otwell's avatar Taylor Otwell

cast values when comparing.

parent 563568fb
......@@ -446,7 +446,7 @@ class Form {
}
else
{
$selected = ($value == $selected) ? 'selected' : null;
$selected = ((string) $value == (string) $selected) ? 'selected' : null;
}
$attributes = array('value' => HTML::entities($value), 'selected' => $selected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment