From 03c4b3c3088f3b95a7cab4f9c3e04fe45503b51b Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 15 Apr 2002 16:39:26 +0000 Subject: - submit page will no longer give errors. - empty taxonomy sets should now be well behaved. --- modules/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy.module') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 3ccac2aed..134ad98eb 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -303,7 +303,7 @@ Synonyms
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 -- cgit v1.2.3