Index: i18nsync.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18n/experimental/Attic/i18nsync.module,v
retrieving revision 1.1.2.6.2.1
diff -u -p -r1.1.2.6.2.1 i18nsync.module
--- i18nsync.module	4 Dec 2007 20:17:43 -0000	1.1.2.6.2.1
+++ i18nsync.module	9 Jan 2008 11:56:51 -0000
@@ -43,17 +43,19 @@ function i18nsync_form_alter($form_id, &
       // Each set provides title and options. We build a big checkboxes control for it to be
       // saved as an array. Special themeing for group titles.
       foreach (i18nsync_node_available_fields($type) as $group => $data) {
-        $title = $data['#title'];
-        foreach ($data['#options'] as $field => $name) {
-          $form['workflow']['i18n']['i18nsync_nodeapi'][$field] = array(
-            '#group_title' => $title,
-            '#title' => $name,
-            '#type' => 'checkbox',
-            '#default_value' => in_array($field, $current),
-            '#theme' => 'i18nsync_workflow_checkbox',
-          );
-          $title = '';  
-        }     
+        if (array_key_exists('#options', $data)) {
+	  $title = $data['#title'];
+          foreach ($data['#options'] as $field => $name) {
+            $form['workflow']['i18n']['i18nsync_nodeapi'][$field] = array(
+              '#group_title' => $title,
+              '#title' => $name,
+              '#type' => 'checkbox',
+              '#default_value' => in_array($field, $current),
+              '#theme' => 'i18nsync_workflow_checkbox',
+            );
+            $title = '';  
+          }     
+        }
       }
 
       break;
