summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-04-28 09:08:02 +0000
committerDries Buytaert <dries@buytaert.net>2002-04-28 09:08:02 +0000
commit3eb55eae7192dcabe9e1cc98904e3988dafdc368 (patch)
tree197a8ade56693962749652041432c0d7c5239728 /modules/taxonomy/taxonomy.module
parentae263bf60796f505060c2302dbf4a9b973101094 (diff)
downloadbrdo-3eb55eae7192dcabe9e1cc98904e3988dafdc368.tar.gz
brdo-3eb55eae7192dcabe9e1cc98904e3988dafdc368.tar.bz2
- Fixed a glitch in the taxonomy module. Contributed by Marco.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ad0833203..1d2fc4660 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/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