zendframework/zf2 — pull request #3614 by davidwindell (2013-01-30 15:41:02+00:00)
Title: [Form] Prevent undefined index error

When data is passed to a form, `prepareBindData()` filters the posted input by removing any fields from the post that aren't in the form.

This PR fixes an undefined index in the case when incorrect data is passed to the form;

```Notice: Undefined index: xxxx in public_html/vendor/zendframework/zendframework/library/Zend/Form/Form.php on line 302```

```Catchable fatal error: Argument 1 passed to Zend\Form\Fieldset::bindValues() must be an array, null given, called in public_html/vendor/zendframework/zendframework/library/Zend/Form/Form.php on line 303 and defined in public_html/vendor/zendframework/zendframework/library/Zend/Form/Fieldset.php on line 511```