Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6582f87cfaf752dd047dd337d1842a081b95f193 1 parent 7d824a6
@davidwindell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Zend/Form/Fieldset.php
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.