summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-18 07:26:45 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-18 07:26:45 +0000
commit66d6743924a2c0d0f54a33737754841708ca0764 (patch)
tree76923eaca9bafa85e6d50e4068c93a0ec81cfbae
parentd8aacc5de273da3b2d20ae8063bc8da4e57ae097 (diff)
downloadbrdo-66d6743924a2c0d0f54a33737754841708ca0764.tar.gz
brdo-66d6743924a2c0d0f54a33737754841708ca0764.tar.bz2
- Patch #277214 by lilou, dereine, Damien Tournoud et al: all menu loaders should return FALSE on object not found.
-rw-r--r--modules/taxonomy/taxonomy.module6
1 files changed, 3 insertions, 3 deletions
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;
}
/**