diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-04-30 21:45:47 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-04-30 21:45:47 -0700 |
commit | b9757778158c0741d4df590a4e6b7bc51727be7f (patch) | |
tree | 496825bae11194fe1d34860ec9aba7ebe34fc718 /modules/taxonomy/taxonomy.module | |
parent | 47f1ff523d738eb7d2e66ee7f689f62c5d6964de (diff) | |
download | brdo-b9757778158c0741d4df590a4e6b7bc51727be7f.tar.gz brdo-b9757778158c0741d4df590a4e6b7bc51727be7f.tar.bz2 |
Issue #277200 by andypost, Damien Tournoud: Add tests for vocabulary hierarchy.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 219f360cf..d7e9b2f1c 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -568,7 +568,7 @@ function taxonomy_check_vocabulary_hierarchy($vocabulary, $changed_term) { $hierarchy = 2; break; } - elseif (count($term->parents) == 1 && 0 !== array_shift($term->parents)) { + elseif (count($term->parents) == 1 && !isset($term->parents[0])) { $hierarchy = 1; } } |