summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-15 16:39:26 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-15 16:39:26 +0000
commit03c4b3c3088f3b95a7cab4f9c3e04fe45503b51b (patch)
tree180182f79940f91e3f07c2f8b9d3cd52d6c44b1c /modules/taxonomy/taxonomy.module
parent7e6acb5bbd4ddde196b30942b18a954b57ef0c08 (diff)
downloadbrdo-03c4b3c3088f3b95a7cab4f9c3e04fe45503b51b.tar.gz
brdo-03c4b3c3088f3b95a7cab4f9c3e04fe45503b51b.tar.bz2
- submit page will no longer give errors.
- empty taxonomy sets should now be well behaved.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 3ccac2aed..134ad98eb 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -303,7 +303,7 @@ Synonyms<br />Enter synonyms for this term, one synonym per line. Synonyms can b
while ($vocabulary = db_fetch_object($c)) {
$result[] .= taxonomy_form($vocabulary->vid, $terms);
}
- return $result;
+ return $result ? $result : array();
}
// return 1 if node identified by $nid contains a taxonomy term identified by $tid in his body or title