--- quiz.module.o	2008-10-06 15:21:58.000000000 +0200
+++ quiz.module	2008-10-10 09:07:52.000000000 +0200
@@ -1578,15 +1578,16 @@
     '#description' => t('The number of randomly selected questions to assign to this quiz.'),
   );
 
-  $form['filtered_random_question_list']['random_term_id'] = array(
-    '#type' => 'select',
-    '#title' => t('Terms'),
-    '#size' => 1,
-    '#options' => _quiz_taxonomy_select($quiz->tid),
-    '#default_value' => $quiz->tid,
-    '#description' => t('Randomly select from questions with this term, or choose from the random question pool below'),
-  );
-
+  if (function_exists(taxonomy_get_vocabularies)) {
+    $form['filtered_random_question_list']['random_term_id'] = array(
+      '#type' => 'select',
+      '#title' => t('Terms'),
+      '#size' => 1,
+      '#options' => _quiz_taxonomy_select($quiz->tid),
+      '#default_value' => $quiz->tid,
+      '#description' => t('Randomly select from questions with this term, or choose from the random question pool below'),
+    );
+  }
   // Display questions 'random' on this quiz.
   $form['filtered_question_list_random'] = array(
     '#type' => 'fieldset',
