--- autoassignrole.module	2010-10-10 15:32:34.000000000 +0300
+++ autoassign.module.patched	2011-04-13 10:08:18.000000000 +0300
@@ -459,7 +459,7 @@ function autoassignrole_form_alter(&$for
       $form['#content_profile_registration_use_types'] = array();
       foreach (content_profile_get_types('names') as $type => $name) {
         $cp_settings = content_profile_get_settings($type, 'autoassignrole_use');
-        if (is_array($cp_settings) && in_array($rid, $cp_settings)) {
+        if (is_array($cp_settings) && in_array($rid, array($cp_settings))) {
           $form['#content_profile_registration_use_types'][$type] = $name;
         }
       }
