summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/content_types/vocabulary_context/vocabulary_terms.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/content_types/vocabulary_context/vocabulary_terms.inc b/plugins/content_types/vocabulary_context/vocabulary_terms.inc
index a3f92f7..3a1b11a 100644
--- a/plugins/content_types/vocabulary_context/vocabulary_terms.inc
+++ b/plugins/content_types/vocabulary_context/vocabulary_terms.inc
@@ -24,7 +24,7 @@ function ctools_vocabulary_terms_content_type_render($subtype, $conf, $panel_arg
$vocab = isset($context->data) ? clone($context->data) : NULL;
$max_depth = (!empty($conf['max_depth']) ? (int)$conf['max_depth'] : NULL);
if ($conf['tree'] == FALSE) {
- $terms = taxonomy_get_tree($vocab->vid, 0, -1, $max_depth);
+ $terms = taxonomy_get_tree($vocab->vid, 0, $max_depth);
$items = array();
foreach ($terms as $term) {
$items[] = l($term->name, 'taxonomy/term/' . $term->tid);