diff options
-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)); } |