Index: search_config.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/search_config/search_config.module,v
retrieving revision 1.9.2.8
diff -u -p -r1.9.2.8 search_config.module
--- search_config.module	26 Apr 2010 18:30:18 -0000	1.9.2.8
+++ search_config.module	11 Jun 2010 20:40:45 -0000
@@ -76,22 +76,25 @@ function search_config_form_alter(&$form
         }
       }
 
-      // Rebuild form item -- copied from node.module
-      if (count($types) == 1) {
-        $type_keys = array_keys($types);
-        $form['advanced']['type'] = array(
-          '#type' => 'hidden',
-          '#default_value' => $type_keys[0],
-        );
-      }
-      else {
-        $form['advanced']['type'] = array(
-          '#type' => 'checkboxes',
-          '#title' => t('Only of the type(s)'),
-          '#prefix' => '<div class="criterion">',
-          '#suffix' => '</div>',
-          '#options' => $types,
-        );
+      // Rebuild form item -- copied from node.module, but only if advanced
+      // fieldset exists.
+      if (!empty($form['advanced'])) {
+        if (count($types) == 1) {
+          $type_keys = array_keys($types);
+          $form['advanced']['type'] = array(
+            '#type' => 'hidden',
+            '#default_value' => $type_keys[0],
+          );
+        }
+        else {
+          $form['advanced']['type'] = array(
+            '#type' => 'checkboxes',
+            '#title' => t('Only of the type(s)'),
+            '#prefix' => '<div class="criterion">',
+            '#suffix' => '</div>',
+            '#options' => $types,
+          );
+        }
       }
     }
 
