소스 검색

[HttpFoundation] Fixed missing curly brackets

Pascal Borreli 14 년 전
부모
커밋
f7ab114d36
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }