Skip to content

Instantly share code, notes, and snippets.

@bitamar
Created August 21, 2016 13:30
Show Gist options
  • Save bitamar/a60581d3e42d740d255692a41a3ffc9d to your computer and use it in GitHub Desktop.
Save bitamar/a60581d3e42d740d255692a41a3ffc9d to your computer and use it in GitHub Desktop.
diff --git a/plugins/destinations/term.inc b/plugins/destinations/term.inc
index f01c55f..37641a4 100644
--- a/plugins/destinations/term.inc
+++ b/plugins/destinations/term.inc
@@ -224,7 +224,7 @@ class MigrateDestinationTerm extends MigrateDestinationEntity {
}
$this->prepare($term, $row);
- if (empty($term->name)) {
+ if ($term->name == '') {
throw new MigrateException(t('Taxonomy term name is required.'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment