Index: indexpage.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/indexpage/indexpage.module,v
retrieving revision 1.5
diff -u -r1.5 indexpage.module
--- indexpage.module	5 May 2005 13:37:53 -0000	1.5
+++ indexpage.module	6 Jun 2005 16:06:51 -0000
@@ -118,7 +118,7 @@
 
   /* Index by taxonomy terms block */
   if (variable_get("indexpage_".$type."_vocfilter", 1)) {
-    $vocs = db_query('SELECT name, v.vid FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} vnt on v.vid=vnt.vid WHERE type LIKE "%'.$type.'%"');
+    $vocs = db_query('SELECT DISTINCT name, v.vid FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} vnt on v.vid=vnt.vid WHERE type LIKE "%'.$type.'%"');
     while ($voc = db_fetch_array($vocs)) {
       $output .= '<div class="filter">';
       $output .= '<h3>'.t("List by %s", array("%s" => $voc[name])).'</h3>';
