Index: webform.components.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/includes/webform.components.inc,v
retrieving revision 1.25.2.15
diff -u -r1.25.2.15 webform.components.inc
--- webform.components.inc	30 Jun 2010 20:45:25 -0000	1.25.2.15
+++ webform.components.inc	27 Jul 2010 06:41:03 -0000
@@ -762,14 +762,15 @@
     if (!isset($feature) || webform_component_feature($component['type'], $feature) || ($indent && webform_component_feature($component['type'], 'group'))) {
       $prefix = '';
       $page_num = $component['page_num'];
+      $page_index = 'p' . $page_num;
       if ($indent && ($parent_count = count(webform_component_parent_keys($node, $component)) - 1)) {
         $prefix = str_repeat('-', $parent_count);
       }
       if ($optgroups && $component['type'] == 'pagebreak') {
-        $page_names[$page_num] = $component['name'];
+        $page_names[$page_index] = $component['name'];
       }
       elseif ($optgroups && $page_num > 1) {
-        $options[$page_num][$cid] = $prefix . $component['name'];
+        $options[$page_index][$cid] = $prefix . $component['name'];
       }
       else {
         $options[$cid] = $prefix . $component['name'];
