Преглед изворни кода

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

Fabien Potencier пре 15 година
родитељ
комит
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) {