aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jquery_drawer.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module
index 6e573e2..336c497 100644
--- a/jquery_drawer.module
+++ b/jquery_drawer.module
@@ -165,8 +165,10 @@ function jquery_drawer_page($tid = NULL) {
$tree = taxonomy_node_tree_build($nodes, $terms);
// format output
- foreach ($tree as $term) {
- $output .= taxonomy_node_tree_list($term, 'jquery_drawer', 'hidden', 'node');
+ if (is_array($tree) && $tree != NULL) {
+ foreach ($tree as $term) {
+ $output .= taxonomy_node_tree_list($term, 'jquery_drawer', 'hidden', 'node');
+ }
}
}