aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-11-18 15:30:11 -0200
committerSilvio <silvio@socioambiental.org>2013-11-18 15:30:11 -0200
commit3855999ca9a5d475fbbb076989dc225d7475d8c2 (patch)
treefc54885862d1ef3777b7b80df5526f024dea86f1
parent50b931e66deb107f5d1ddce1461bf4dd895429e1 (diff)
downloadjquery_drawer-3855999ca9a5d475fbbb076989dc225d7475d8c2.tar.gz
jquery_drawer-3855999ca9a5d475fbbb076989dc225d7475d8c2.tar.bz2
Change output test
-rw-r--r--jquery_drawer.module4
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);
}