diff options
author | Silvio <silvio@socioambiental.org> | 2013-11-19 16:41:28 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-11-19 16:41:28 -0200 |
commit | f6faa7cd762c428169da71686a60cefab77916bf (patch) | |
tree | 90167c9dfd51110ed836d70d4b038630fac6a1bc | |
parent | e22931444023d13c851794bc4b125f0b821c0d81 (diff) | |
download | jquery_drawer-f6faa7cd762c428169da71686a60cefab77916bf.tar.gz jquery_drawer-f6faa7cd762c428169da71686a60cefab77916bf.tar.bz2 |
Minor fix (3)
-rw-r--r-- | jquery_drawer.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index 7013cdb..4668226 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -108,6 +108,10 @@ function jquery_drawer_check_empty($tid) { function jquery_drawer_select_nodes($tid = NULL) { static $cache = array(); + if ($tid == NULL) { + return; + } + if (isset($cache[$tid])) { $cache[$tid] = taxonomy_select_nodes(array($tid)); } |