Index: project.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/project.module,v
retrieving revision 1.233
diff -u -r1.233 project.module
--- project.module	27 Mar 2006 19:23:20 -0000	1.233
+++ project.module	7 Apr 2006 10:58:54 -0000
@@ -43,11 +43,12 @@
       if (module_exist('taxonomy')) {
         $tree = taxonomy_get_tree(_project_get_vid());
         // Extract the different project types, and, for the first type, up to three categories.
+        $categories = array();
         foreach ($tree as $index => $term) {
           if ($term->depth == 0) {
             $types[] = $term->name;
           }
-          elseif (($term->depth == 1) && ($index == 1) && (count($categories)< 3)) {
+          elseif (($term->depth == 1) && (count($categories)< 3)) {
             $categories[] = $term->name;
           }
         }

