--- filefield_paths.module.orig 2010-02-19 17:01:11.000000000 +0300 +++ filefield_paths.module 2010-02-19 17:03:15.133030566 +0300 @@ -422,6 +422,7 @@ // Process files. foreach ($ffp['#files'] as &$file) { + if (!is_array($file['field'])) continue; // Invoke hook_filefield_paths_process_file(). foreach (module_implements('filefield_paths_process_file') as $module) { $function = $module . '_filefield_paths_process_file';