Index: profile_migrate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profile_migrate/profile_migrate.module,v
retrieving revision 1.3
diff -u -p -r1.3 profile_migrate.module
--- profile_migrate.module	6 Dec 2009 12:37:24 -0000	1.3
+++ profile_migrate.module	31 Dec 2009 12:50:27 -0000
@@ -109,7 +109,7 @@ function profile_migrate_settings_form_s
  *   create a new content type for each one.
  */
 function profile_migrate($type_name = 'profile', $method = 'fieldgroup') {
-  if (method == 'fieldgroup') {
+  if ($method == 'fieldgroup') {
     module_enable(array('fieldgroup'));
   }
   $batch = array(
@@ -238,7 +238,7 @@ function profile_migrate_fields($type_na
       case 'selection':
         $field['type'] = 'text';
         $field['module'] = 'text';
-        $field['widget']['type'] = 'options_select';
+        $field['widget']['type'] = 'optionwidgets_select';
         $field['widget']['module'] = 'text';
         
         $field['text_processing'] = 0;
@@ -380,7 +380,7 @@ function profile_migrate_fields($type_na
       }
       $new_types[$old_field->category] = $type_name;
       
-      if ($cat_count > 0 && !array_key_exists($type_name, $types)) { 
+      if ($cat_count > 0 && !array_key_exists($type_name, $types)) {
         $type = array(
           'type' => $type_name,
           'name' => $old_field->category,
@@ -506,4 +506,4 @@ function profile_migrate_batch_finished(
   }
   //dsm($_SESSION['sandbox']);
   cache_clear_all();
-}
\ No newline at end of file
+}
