Index: includes/webform.components.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/includes/webform.components.inc,v
retrieving revision 1.53
diff -u -r1.53 webform.components.inc
--- includes/webform.components.inc	20 Oct 2010 03:05:13 -0000	1.53
+++ includes/webform.components.inc	30 Dec 2010 00:57:39 -0000
@@ -858,6 +858,7 @@
   }
 
   // Remove groups that do not have any children.
+  $cid = 0;
   $previous_cid = 0;
   foreach ($options as $cid => $label) {
     if (isset($node->webform['components'][$previous_cid]['type']) && webform_component_feature($node->webform['components'][$previous_cid]['type'], 'group') && webform_component_feature($node->webform['components'][$cid]['type'], 'group')) {
@@ -866,7 +867,7 @@
   }
 
   // Remove the last item from the list if it's a group.
-  if (webform_component_feature($node->webform['components'][$cid]['type'], 'group')) {
+  if ($cid && webform_component_feature($node->webform['components'][$cid]['type'], 'group')) {
     unset($options[$cid]);
   }
 
