cast values when comparing.

This commit is contained in:
Taylor Otwell 2012-06-03 17:42:16 -05:00
parent 563568fbfe
commit c9a4f5ea2f
1 changed files with 1 additions and 1 deletions

View File

@ -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);