--- autoassignrole.module	2011-02-04 17:59:55.000000000 +0200
+++ autoassignrole_copy.module	2011-02-04 18:00:31.000000000 +0200
@@ -458,7 +458,7 @@ function autoassignrole_form_alter(&$for
       // Set the content types which should be shown by the content_profile_registration module
       $form['#content_profile_registration_use_types'] = array();
       foreach (content_profile_get_types('names') as $type => $name) {
-        if (in_array($rid, content_profile_get_settings($type, 'autoassignrole_use'))) {
+        if (in_array($rid, array(content_profile_get_settings($type, 'autoassignrole_use')))) {
           $form['#content_profile_registration_use_types'][$type] = $name;
         }
       }
