some small refactoring and bug fixing.

This commit is contained in:
Taylor Otwell
2011-11-13 15:23:48 -06:00
parent 04f7661292
commit 2758b4c16d
4 changed files with 4 additions and 6 deletions

View File

@@ -387,7 +387,7 @@ class Form {
*/
protected static function option($value, $display, $selected)
{
$selected = ($value === $selected) ? 'selected' : null;
$selected = ($value == $selected) ? 'selected' : null;
$attributes = array('value' => HTML::entities($value), 'selected' => $selected);