Browse Source

[HttpFoundation] Fixed missing curly brackets

Pascal Borreli 14 năm trước cách đây
mục cha
commit
f7ab114d36
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Symfony/Component/HttpFoundation/FileBag.php

+ 2 - 1
src/Symfony/Component/HttpFoundation/FileBag.php

@@ -86,13 +86,14 @@ class FileBag extends ParameterBag
             }
             if ($keys != $this->fileKeys) {
                 $file = array_map(array($this, 'convertFileInformation'), $file);
-            } else
+            } else {
                 if ($file['error'] === UPLOAD_ERR_NO_FILE) {
                     $file = null;
                 } else {
                     $file = new UploadedFile($file['tmp_name'], $file['name'],
                     $file['type'], $file['size'], $file['error']);
                 }
+            }
         }
         return $file;
     }