[Form] fixed Form::bind() when no values are submitted

This commit is contained in:
Fabien Potencier 2010-09-09 15:23:28 +02:00
parent bb51e7cb26
commit c53ebe7a8e

View File

@ -177,6 +177,10 @@ class Form extends FieldGroup
$taintedFiles = self::convertFileInformation(self::fixPhpFilesArray($taintedFiles));
}
if (null === $taintedValues) {
$taintedValues = array();
}
$this->doBind(self::deepArrayUnion($taintedValues, $taintedFiles));
if ($this->getParent() === null) {