laravel/laravel — pull request #733 by cviebrock (2012-05-30 16:27:40+00:00)
Title: Fix where $selected=0 and $value is a string

This code:

```
echo Form::select('field, array( 0 => 'Empty', 'work' => 'Work', 'home'=>'Home' ), 0 );
```

will end up generating this HTML:

```

Empty

Work

Home

```

i.e. every option is selected, because `'string' == 0`. Switching the check from `==` to `===` fixes this.

Signed-off-by: Colin Viebrock