فهرست منبع

[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));
             $taintedFiles = self::convertFileInformation(self::fixPhpFilesArray($taintedFiles));
         }
         }
 
 
+        if (null === $taintedValues) {
+            $taintedValues = array();
+        }
+
         $this->doBind(self::deepArrayUnion($taintedValues, $taintedFiles));
         $this->doBind(self::deepArrayUnion($taintedValues, $taintedFiles));
 
 
         if ($this->getParent() === null) {
         if ($this->getParent() === null) {