? pathauto-935320.patch
Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.118.2.31
diff -u -p -r1.118.2.31 pathauto.module
--- pathauto.module	7 Oct 2010 17:43:15 -0000	1.118.2.31
+++ pathauto.module	7 Oct 2010 23:00:18 -0000
@@ -273,7 +273,7 @@ function pathauto_form_alter(&$form, $fo
 
     // Find if there is an automatic alias pattern for this node type.
     if (isset($form['language'])) {
-      $language = isset($form['language']['#value']) ? $form['language']['#value'] : $form['language']['#default_value'];
+      $language = isset($form['language']['#value']) ? $form['language']['#value'] : isset($form['language']['#default_value']) ? $form['language']['#default_value'] : '';
       $pattern = trim(variable_get('pathauto_node_'. $form['type']['#value'] .'_'. $language .'_pattern', ''));
     }
     if (!$pattern) {
