From f6faa7cd762c428169da71686a60cefab77916bf Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 19 Nov 2013 16:41:28 -0200 Subject: Minor fix (3) --- jquery_drawer.module | 4 ++++ 1 file changed, 4 insertions(+) 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)); } -- cgit v1.2.3