Skip to content
Snippets Groups Projects
Commit 4820785f authored by kensae's avatar kensae Committed by Eirik Morland
Browse files

Issue #3272881 by kensae: Linkchecker causes migration to crash when no...

Issue #3272881 by kensae: Linkchecker causes migration to crash when no migration tags are available
parent e74d8ea6
No related branches found
Tags 8.x-1.0-beta4
No related merge requests found
......@@ -252,7 +252,7 @@ function linkchecker_migration_plugins_alter(array &$migrations) {
* Implements hook_migrate_prepare_row().
*/
function linkchecker_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
if (!in_array('linkchecker', $migration->getMigrationTags())) {
if (!$migration->getMigrationTags() || !in_array('linkchecker', $migration->getMigrationTags())) {
return;
}
$supported_field_types = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment