Index: faq.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/faq/Attic/faq.admin.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 faq.admin.inc
--- faq.admin.inc 12 Jun 2008 11:16:29 -0000 1.1.2.1
+++ faq.admin.inc 29 Jun 2008 20:14:22 -0000
@@ -239,26 +239,28 @@ function faq_categories_settings_form()
     '#default_value' => variable_get('faq_show_term_page_children', FALSE),
   );

-  $form['faq_category_advanced'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('Advanced category settings'),
-    '#collapsible' => TRUE,
-    '#collapsed' => TRUE,
-  );
+  if (module_exists('taxonomy')) {
+    $form['faq_category_advanced'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('Advanced category settings'),
+      '#collapsible' => TRUE,
+      '#collapsed' => TRUE,
+    );

-  $vocab_options = array();
-  $vocabularies = taxonomy_get_vocabularies('faq');
-  foreach ($vocabularies as $vid => $vobj) {
-    $vocab_options[$vid] = $vobj->name;
-  }
-  $form['faq_category_advanced']['faq_omit_vocabulary'] = array(
-    '#type' => 'select',
-    '#title' => t('Omit vocabulary'),
-    '#description' => t("Terms from these vocabularies will be excluded from the FAQ pages."),
-    '#default_value' => variable_get('faq_omit_vocabulary', 0),
-    '#options' => $vocab_options,
-    '#multiple' => TRUE,
-  );
+    $vocab_options = array();
+    $vocabularies = taxonomy_get_vocabularies('faq');
+    foreach ($vocabularies as $vid => $vobj) {
+      $vocab_options[$vid] = $vobj->name;
+    }
+    $form['faq_category_advanced']['faq_omit_vocabulary'] = array(
+      '#type' => 'select',
+      '#title' => t('Omit vocabulary'),
+      '#description' => t("Terms from these vocabularies will be excluded from the FAQ pages."),
+      '#default_value' => variable_get('faq_omit_vocabulary', 0),
+      '#options' => $vocab_options,
+      '#multiple' => TRUE,
+    );
+  }

   return system_settings_form($form);
 }
