diff options
-rw-r--r-- | jquery_drawer.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index 64593ff..5218ae7 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -185,8 +185,8 @@ function jquery_drawer_page($tid = NULL) { $nodes = db_query(db_rewrite_sql($query), implode(',', $filter)); $tree = taxonomy_node_tree_build($nodes, $terms); - // format output - if (is_array($tree) && $tree != NULL) { + // Format output + if (is_array($tree) && !empty($tree)) { foreach ($tree as $term) { $output .= taxonomy_node_tree_list($term, 'jquery_drawer', 'hidden', $base); } |