Index: filefield_widget.inc =================================================================== --- filefield_widget.inc (revision 1380) +++ filefield_widget.inc (working copy) @@ -237,6 +237,14 @@ // Load file if the FID has changed so that it can be saved by CCK. $file = field_file_load($item['fid']); + // If the entry exists, but the file is no longer available, field_file_load + // returns FALSE. This can happen, if the file was uploaded, and immediately + // moved. Setting the file object to an empty array, better reflects that + // a file doesn't exist, so the file entry shouldn't exist. + if (!$file) { + $file = array(); + } + // If the file entry doesn't exist, don't save anything. if (empty($file)) { $item = array();