summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-24 02:59:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-24 02:59:42 +0000
commit9bc36524f2782336e75e45b928db5d23da747c26 (patch)
tree02342bba09a01eee025b4bbafbe71fc3a233d14c /modules/taxonomy/taxonomy.module
parent06d0d8c2a45da477480f667975fc0dcd48231df2 (diff)
downloadbrdo-9bc36524f2782336e75e45b928db5d23da747c26.tar.gz
brdo-9bc36524f2782336e75e45b928db5d23da747c26.tar.bz2
#244662 by solotandem and catch: Fix taxonomy_vocabulary_load() when called multiple times.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 1 insertions, 1 deletions
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;