From 9bc36524f2782336e75e45b928db5d23da747c26 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 24 Sep 2008 02:59:42 +0000 Subject: #244662 by solotandem and catch: Fix taxonomy_vocabulary_load() when called multiple times. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 45eab11ca..a93ef9fb0 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -994,7 +994,7 @@ function taxonomy_get_term_by_name($name) { function taxonomy_vocabulary_load($vid) { static $vocabularies = array(); - if (!isset($vocabularies[$vid])) { + if (empty($vocabularies[$vid])) { // Initialize so if this vocabulary does not exist, we have // that cached, and we will not try to load this later. $vocabularies[$vid] = FALSE; -- cgit v1.2.3