Navigation Menu

Skip to content

Commit

Permalink
[Form] fixed Form::bind() when no values are submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 9, 2010
1 parent bb51e7c commit c53ebe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Form/Form.php
Expand Up @@ -177,6 +177,10 @@ final public function bind($taintedValues, array $taintedFiles = null)
$taintedFiles = self::convertFileInformation(self::fixPhpFilesArray($taintedFiles));
}

if (null === $taintedValues) {
$taintedValues = array();
}

$this->doBind(self::deepArrayUnion($taintedValues, $taintedFiles));

if ($this->getParent() === null) {
Expand Down

0 comments on commit c53ebe7

Please sign in to comment.