Merge pull request #331 from spekulatius/adding-space

adding space
This commit is contained in:
Christopher Pitt 2015-09-11 07:30:32 +12:00
commit b383846790
1 changed files with 2 additions and 2 deletions

View File

@ -610,7 +610,7 @@ JS
}
}
if(!empty($data[$field->Name])){
if(!empty($data[$field->Name])) {
if(in_array("EditableFileField", $field->getClassAncestry())) {
if(isset($_FILES[$field->Name])) {
$foldername = $field->getFormField()->getFolderName();
@ -632,7 +632,7 @@ JS
$submittedField->UploadedFileID = $file->ID;
// attach a file only if lower than 1MB
if($file->getAbsoluteSize() < 1024*1024*1){
if($file->getAbsoluteSize() < 1024*1024*1) {
$attachments[] = $file;
}
}