Merged revisions 48451 via svnmerge from

http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.1asfonz

........
  r48451 | jshipman | 2008-01-23 14:42:20 +1300 (Wed, 23 Jan 2008) | 1 line
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48541 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-01-24 00:13:24 +00:00
parent 68f7be24ed
commit e0614530c6

View File

@ -39,7 +39,7 @@ class FileIFrameField extends FileField {
if(!$hasOnes) $hasOnes = $record->has_one($fieldName);
// assume that the file is connected via a has-one
if( !$hasOnes || !$_FILES[$this->name]['name']){
if( !$hasOnes || !isset($_FILES[$this->name]) || !$_FILES[$this->name]['name']){
return;
}