Index: modules/forum/forum.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.install,v
retrieving revision 1.8
diff -u -p -r1.8 forum.install
--- modules/forum/forum.install	2 Jul 2007 17:08:35 -0000	1.8
+++ modules/forum/forum.install	12 Jul 2007 09:05:01 -0000
@@ -5,21 +5,23 @@
  * Implementation of hook_install().
  */
 function forum_install() {
-  // Create the forum vocabulary. Assign the vocabulary a low weight so
-  // it will appear first in forum topic create and edit forms.
-  $vocabulary = array(
-    'name' => t('Forums'),
-    'multiple' => 0,
-    'required' => 1,
-    'hierarchy' => 1,
-    'relations' => 0,
-    'module' => 'forum',
-    'weight' => -10,
-    'nodes' => array('forum' => 1),
-  );
-  taxonomy_save_vocabulary($vocabulary);
+  if (drupal_load('module', 'taxonomy')) {
+    // Create the forum vocabulary. Assign the vocabulary a low weight so
+    // it will appear first in forum topic create and edit forms.
+    $vocabulary = array(
+      'name' => t('Forums'),
+      'multiple' => 0,
+      'required' => 1,
+      'hierarchy' => 1,
+      'relations' => 0,
+      'module' => 'forum',
+      'weight' => -10,
+      'nodes' => array('forum' => 1),
+    );
+    taxonomy_save_vocabulary($vocabulary);
 
-  variable_set('forum_nav_vocabulary', $vocabulary['vid']);
+    variable_set('forum_nav_vocabulary', $vocabulary['vid']);
+  }
 }
 
 /**
