Index: inline.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v
retrieving revision 1.19.2.14
diff -u -p -r1.19.2.14 inline.module
--- inline.module	17 Aug 2008 14:45:52 -0000	1.19.2.14
+++ inline.module	17 Aug 2008 15:49:22 -0000
@@ -152,12 +152,11 @@ function inline_settings() {
  * Allows to enable/disable auto-inline support for each content type.
  */
 function inline_form_alter($form_id, &$form) {
-  if ($form_id == 'node_type_form') {
-    $node_type = $form['orig_type']['#value'];
+  if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
     $form['workflow']['upload_inline'] = array(
       '#type' => 'radios',
       '#title' => t('Display attachments inline automatically'),
-      '#default_value' => variable_get('upload_inline_'. $node_type, 0),
+      '#default_value' => variable_get('upload_inline_'. $form['#node_type']->type, 0),
       '#options' => array(
         0 => t('Disabled'),
         1 => t('Only in teaser view'),
