Permalink
Browse files

Don't bind values for elements that don't exist

  • Loading branch information...
1 parent 7d824a6 commit 6582f87cfaf752dd047dd337d1842a081b95f193 @davidwindell committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Form/Fieldset.php
@@ -485,7 +485,7 @@ public function bindValues(array $values = array())
$hydratableData = array();
foreach ($values as $name => $value) {
- if (empty($value)) {
+ if (empty($value) || !$this->has($name)) {
continue;
}

0 comments on commit 6582f87

Please sign in to comment.