From c2f26d3368d38ce4d73aa0089d09d2d78ccf9285 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Dec 2009 15:39:43 +0000 Subject: - Patch #653940 by sun: tests weren't reporting all errors. --- modules/taxonomy/taxonomy.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 4cc5de737..290162e26 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -903,7 +903,8 @@ function taxonomy_vocabulary_load_multiple($vids = array(), $conditions = array( * Results are statically cached. */ function taxonomy_vocabulary_load($vid) { - return reset(taxonomy_vocabulary_load_multiple(array($vid))); + $vocabularies = taxonomy_vocabulary_load_multiple(array($vid)); + return reset($vocabularies); } /** -- cgit v1.2.3