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	15 Jul 2010 16:27:06 -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');
