Commit 899e2a09 authored by colan's avatar colan

Issue #1351704 by Pol, colan: Stop processing invalid files.

parent 6d662c92
......@@ -250,8 +250,8 @@ function file_content_migrate_data_record_alter(&$record, $field, $instance) {
->fetchObject();
// In case of unknown file, just abort.
if (!is_object($file)) {
return;
if ((!is_object($file)) || is_null($file->fid)) {
break;
}
$basename = variable_get('file_directory_path', conf_path() . '/files');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment