--- includes/form.inc	25 Jun 2008 09:57:07 -0000	1.275
+++ includes/form.inc	3 Jul 2008 19:09:00 -0000
@@ -870,7 +870,10 @@
   // Recurse through all child elements.
   $count = 0;
   foreach (element_children($form) as $key) {
-    $form[$key]['#post'] = $form['#post'];
+    if (!is_array($form[$key])) {
+    	$form[$key] = array();
+    }
+  	$form[$key]['#post'] = $form['#post'];
     $form[$key]['#programmed'] = $form['#programmed'];
     // Don't squash an existing tree value.
     if (!isset($form[$key]['#tree'])) {
