From 3855999ca9a5d475fbbb076989dc225d7475d8c2 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 18 Nov 2013 15:30:11 -0200 Subject: Change output test --- jquery_drawer.module | 4 ++-- 1 file 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); } -- cgit v1.2.3