diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-04-28 09:08:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-04-28 09:08:02 +0000 |
commit | 3eb55eae7192dcabe9e1cc98904e3988dafdc368 (patch) | |
tree | 197a8ade56693962749652041432c0d7c5239728 /modules/taxonomy.module | |
parent | ae263bf60796f505060c2302dbf4a9b973101094 (diff) | |
download | brdo-3eb55eae7192dcabe9e1cc98904e3988dafdc368.tar.gz brdo-3eb55eae7192dcabe9e1cc98904e3988dafdc368.tar.bz2 |
- Fixed a glitch in the taxonomy module. Contributed by Marco.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r-- | modules/taxonomy.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index ad0833203..1d2fc4660 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -213,6 +213,7 @@ $vocabularies = taxonomy_get_vocabularies(); foreach ($vocabularies as $vocabulary) { + $links = array(); $links[] = la(t("edit vocabulary"), array("mod" => "taxonomy", "type" => "vocabulary", "op" => "edit", "id" => $vocabulary->vid)); $links[] = la(t("add term"), array("mod" => "taxonomy", "op" => "add", "type" => "leaf", "vocabulary_id" => $vocabulary->vid)); $links[] = la(t("preview form"), array("mod" => "taxonomy", "type" => "vocabulary", "op" => "preview", "id" => $vocabulary->vid)); @@ -353,6 +354,9 @@ } return $related; } + else { + return array(); + } } // hierarchy: get parent terms |