Commit 66d67439 authored by Dries's avatar Dries
Browse files

- Patch #277214 by lilou, dereine, Damien Tournoud et al: all menu loaders...

- Patch #277214 by lilou, dereine, Damien Tournoud et al: all menu loaders should return FALSE on object not found.
parent d8aacc5d
......@@ -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;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment