--- /Users/domenic/Desktop/pathauto/pathauto_node.inc	2007-08-13 16:06:53.000000000 -0700
+++ pathauto_node.inc	2007-08-14 00:15:13.000000000 -0700
@@ -13,15 +13,16 @@ function node_pathauto($op) {
       $settings['patterndescr'] = t('Default path pattern (applies to all node types with blank patterns below)');
       $settings['patterndefault'] = t('content/[title]');
       $settings['bulkname'] = t('Bulk generate aliases for nodes that are not aliased');
-      $settings['bulkdescr'] =
-        t('Generate aliases for all existing nodes which do not already have aliases. Note: Bulk Update may not complete on large or slow sites. See the README.txt for more information.');
+      $settings['bulkdescr'] = t('Generate aliases for all existing nodes which do not already have aliases. Note: Bulk Update may not complete on large or slow sites. See the README.txt for more information.');
 
       $patterns = token_get_list('node');
       $pattern_types = array('node', 'book', 'CCK text', 'CCK node reference', 'CCK number', 'CCK user reference', 'CCK link');
       foreach ($pattern_types as $pattern_type) {
-	foreach ($patterns[$pattern_type] as $pattern => $description) {
-	  $settings['placeholders'][t('['. $pattern .']')] = t($description);
-	}
+	if(is_array($patterns[$pattern_type])){
+          foreach ($patterns[$pattern_type] as $pattern => $description) {
+            $settings['placeholders'][t('['. $pattern .']')] = t($description);
+          }
+        }
       }
 
       $nodetypes = node_get_types();
