From 3eb55eae7192dcabe9e1cc98904e3988dafdc368 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Apr 2002 09:08:02 +0000 Subject: - Fixed a glitch in the taxonomy module. Contributed by Marco. --- modules/taxonomy/taxonomy.module | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/taxonomy/taxonomy.module') 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 -- cgit v1.2.3