Skip to content
Snippets Groups Projects
Commit ea2b76cf authored by Alex Barth's avatar Alex Barth
Browse files

Don't accept empty terms.

parent 143f7f18
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class FeedsTermProcessor extends FeedsProcessor { ...@@ -47,7 +47,7 @@ class FeedsTermProcessor extends FeedsProcessor {
* Validates a term. * Validates a term.
*/ */
protected function entityValidate($term) { protected function entityValidate($term) {
if (!isset($term->name)) { if (empty($term->name)) {
throw new FeedsValidationException(t('Term name missing.')); throw new FeedsValidationException(t('Term name missing.'));
} }
} }
......
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