cakephp/cakephp — pull request #880 by cjsaylor (2012-09-30 21:12:38+00:00)
Title: FormHelper select method api change can produce a fatal due to 1.3 -> 2.* api change

I was working on migrating a site today from 1.3 to 2.*.

A fatal was occuring when using the `FormHelper::select()` method:

```
Error: Fatal Error (1): Unsupported operand types in [/path/to/my/app/cakephp/lib/Cake/View/Helper/FormHelper.php, line 1809]
```

Since the third parameter in 1.3 used to accept `null` as the default value, just doing a check for null on `$attributes` to prevent the fatal.