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) { ...@@ -250,8 +250,8 @@ function file_content_migrate_data_record_alter(&$record, $field, $instance) {
->fetchObject(); ->fetchObject();
// In case of unknown file, just abort. // In case of unknown file, just abort.
if (!is_object($file)) { if ((!is_object($file)) || is_null($file->fid)) {
return; break;
} }
$basename = variable_get('file_directory_path', conf_path() . '/files'); $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