Index: taxonomy_navigator.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_navigator/taxonomy_navigator.module,v
retrieving revision 1.1
diff -b -u -p -r1.1 taxonomy_navigator.module
--- taxonomy_navigator.module	22 May 2008 00:37:58 -0000	1.1
+++ taxonomy_navigator.module	8 Jul 2008 07:51:40 -0000
@@ -75,15 +75,19 @@ function taxonomy_navigator_block_conten
  * @return boolean Whenever or not this term is active.
  */
 function taxonomy_navigator_is_term_active($vid, $tid) {
+  static $terms;
+
   $actual_path = $_GET['q'];
   $base_path = variable_get('taxonomy_navigator_base_path_' . $vid, 'taxonomy/term/');
-  if($actual_path == $base_path . $tid) {
+  if ($actual_path == $base_path . $tid) {
     return true;
   }
-  if(arg(0) == 'node' && is_numeric(arg(1))){
+  if (arg(0) == 'node' && is_numeric(arg(1))) {
     $nid = arg(1);
-    $terms = taxonomy_node_get_terms_by_vocabulary($nid, $vid);
-    if(key_exists($tid, $terms)) {
+    if (!isset($terms[$vid])) {
+      $terms[$vid] = taxonomy_node_get_terms_by_vocabulary($nid, $vid);
+    }
+    if (key_exists($tid, $terms[$vid])) {
       return true;
     }
   }
