### Eclipse Workspace Patch 1.0
#P drupal5
Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.113.2.17
diff -u -r1.113.2.17 webform.module
--- sites/all/modules/webform/webform.module	4 May 2007 18:40:32 -0000	1.113.2.17
+++ sites/all/modules/webform/webform.module	6 May 2007 00:30:09 -0000
@@ -376,9 +376,9 @@
       if (is_array($node->webformcomponents)) {
         $new_parent = $node->webformcomponents[$delete_cid]['parent'];
         // Fix-up any children of the deleted component
-        foreach ($node->webformcomponents as $cid => &$component) {
+        foreach ($node->webformcomponents as $cid => $component) {
           if ($component['parent'] == $delete_cid) {
-            $component['parent'] = $new_parent;
+            $node->webformcomponents[$cid]['parent'] = $new_parent;
           }
         }
         unset($node->webformcomponents[$delete_cid]);
