[HttpFoundation] Fixed missing curly brackets

This commit is contained in:
Pascal Borreli 2011-02-27 18:09:38 +01:00
parent 46d28ce1b1
commit f7ab114d36

View File

@ -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;
}