Index: taxonomynode.module
===================================================================
--- taxonomynode.module (revision 246)
+++ taxonomynode.module (working copy)
@@ -183,8 +183,9 @@
foreach ($types as $type) {
$options[$type->type] = $type->name;
}
-
- $vid = $form['vid']['#value'];
+
+ $taxonomynode_settings = array();
+ $vid = isset($form['vid']['#value']) ? $form['vid']['#value'] : FALSE;
if ($vid) {
$taxonomynode_settings = variable_get("taxonomynode_{$vid}", array());
}
@@ -192,7 +193,7 @@
'#type' => 'select',
'#title' => t('Content type'),
'#options' => $options,
- '#default_value' => $taxonomynode_settings['content_type'],
+ '#default_value' => isset($taxonomynode_settings['content_type']) ? $taxonomynode_settings['content_type'] : '',
'#description' => t('Choose the content type that will be created when adding new terms. Important note: If you change your content type selection once nodes have been created, you will have to manually remove the already created nodes for each of the terms of this vocabulary as well as unset the old content type from the Types associated to this vocabulary.')
);
$form['taxonomynode']['taxonomynode_batch'] = array(