Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #18 from espurnes/master
Browse files Browse the repository at this point in the history
Removed warnings on migration without option.
  • Loading branch information
rodrigoaguilera committed Jan 15, 2016
2 parents 236e791 + 3da754c commit 2e84952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/migrate_default_content.migrate.base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abstract class defaultBaseMigration extends Migration {

// Merge default options with other specified in config files.
$options = array('header_rows' => 1);
if ($this->migrationData['options']) {
if (array_key_exists('options', $this->migrationData)) {
$options = array_merge($options, $this->migrationData['options'][0]);
}
return new MigrateSourceCSV($this->arguments['source_path'] . '/' . $this->arguments['source_file'], $this->csvColumns, $options);
Expand Down

0 comments on commit 2e84952

Please sign in to comment.