소스 검색

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

Fabien Potencier 14 년 전
부모
커밋
c53ebe7a8e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/Symfony/Component/Form/Form.php

+ 4 - 0
src/Symfony/Component/Form/Form.php

@@ -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) {