diff options
author | Silvio <silvio@socioambiental.org> | 2009-11-25 15:54:55 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-10-14 18:23:24 -0300 |
commit | 375b0912ff22333eaa3daae829f2012b08bfb3d1 (patch) | |
tree | e6f030a344d58c562138646eab9d5334de508634 | |
parent | 2143f4f53f48598d370c375df008999f1621fa52 (diff) | |
download | jquery_drawer-375b0912ff22333eaa3daae829f2012b08bfb3d1.tar.gz jquery_drawer-375b0912ff22333eaa3daae829f2012b08bfb3d1.tar.bz2 |
Trying to fix #32
-rw-r--r-- | jquery_drawer.module | 6 |
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'); + } } } |