? 684016.patch
Index: storm.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/storm/storm.module,v
retrieving revision 1.10.4.55
diff -u -p -r1.10.4.55 storm.module
--- storm.module	30 Jun 2010 16:31:26 -0000	1.10.4.55
+++ storm.module	16 Jul 2010 17:49:09 -0000
@@ -833,12 +833,13 @@ function storm_form_alter(&$form, $form_
   }
 
   if ($form_id == $form['type']['#value'] .'_node_form') {
-    $class = $form['#attributes']['class'];
+    if (isset($form['#attributes']['class'])) $class = $form['#attributes']['class'];
     if ($class) $class .= ' ';
     $class .= $form_id;
     $form['#attributes']['class'] = $class;
     foreach ($form as $key => $elem) {
-      if (is_array($elem) && $elem['#type']=='fieldset') {
+//      if (is_array($elem) && $elem['#type']=='fieldset') {
+      if (is_array($elem) && (!isset($elem['#type']) ? '' : $elem['#type'])=='fieldset') {
         $class = $elem['#attributes']['class'];
         if ($class) $class .= ' ';
         $class .= $key;
Index: stormknowledgebase/stormknowledgebase.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/storm/stormknowledgebase/stormknowledgebase.module,v
retrieving revision 1.3.4.24
diff -u -p -r1.3.4.24 stormknowledgebase.module
--- stormknowledgebase/stormknowledgebase.module	27 Sep 2009 23:19:56 -0000	1.3.4.24
+++ stormknowledgebase/stormknowledgebase.module	16 Jul 2010 17:49:10 -0000
@@ -188,7 +188,7 @@ function stormknowledgebase_form(&$node)
   $form['group1']['topic'] = array(
     '#type' => 'select',
     '#title' => t('Topic'),
-    '#default_value' => $node->topic,
+    '#default_value' => !isset($node->topic) ? '' : $node->topic,
     '#options' => $topic_list['values'],
   );
 
Index: stormorganization/stormorganization.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/storm/stormorganization/stormorganization.module,v
retrieving revision 1.11.4.38
diff -u -p -r1.11.4.38 stormorganization.module
--- stormorganization/stormorganization.module	16 Apr 2010 14:08:02 -0000	1.11.4.38
+++ stormorganization/stormorganization.module	16 Jul 2010 17:49:10 -0000
@@ -264,7 +264,7 @@ function stormorganization_form(&$node) 
     '#type' => 'textfield',
     '#title' => t('Prefix'),
     '#size' => 20,
-    '#default_value' => $node->prefix,
+    '#default_value' => !isset($node->prefix) ? '' : $node->prefix,
   );
 
   $form['group2']['fullname'] = array(
@@ -442,8 +442,9 @@ function stormorganization_update($node)
 function stormorganization_nodeapi(&$node, $op, $teaser, $page) {
   switch ($op) {
     case 'prepare':
-      if(!$node->nid) {
+      if(!isset($node->nid)) {
         $node->iscustomer = 1;
+        $node->isprovider = 0;
         $node->isactive = 1;
 
         $country_list = stormattribute_attributes_bydomain('Country');
