From 66d6743924a2c0d0f54a33737754841708ca0764 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 18 Jul 2008 07:26:45 +0000 Subject: - Patch #277214 by lilou, dereine, Damien Tournoud et al: all menu loaders should return FALSE on object not found. --- modules/taxonomy/taxonomy.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index c49625046..d033d4992 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -969,7 +969,7 @@ function taxonomy_get_term_by_name($name) { * The vocabulary's ID * * @return - * The vocabulary object with all of its metadata, if exists, NULL otherwise. + * The vocabulary object with all of its metadata, if exists, FALSE otherwise. * Results are statically cached. */ function taxonomy_vocabulary_load($vid) { @@ -992,8 +992,8 @@ function taxonomy_vocabulary_load($vid) { } } - // Return NULL if this vocabulary does not exist. - return !empty($vocabularies[$vid]) ? $vocabularies[$vid] : NULL; + // Return FALSE if this vocabulary does not exist. + return !empty($vocabularies[$vid]) ? $vocabularies[$vid] : FALSE; } /** -- cgit v1.2.3