Skip to content

Commit

Permalink
Don't bind values for elements that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Jul 27, 2012
1 parent 7d824a6 commit 6582f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Form/Fieldset.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6582f87

Please sign in to comment.