Index: realname_content_profile.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/realname/Attic/realname_content_profile.inc,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 realname_content_profile.inc
--- realname_content_profile.inc	26 May 2010 20:34:45 -0000	1.1.2.8
+++ realname_content_profile.inc	14 Sep 2010 17:02:58 -0000
@@ -14,7 +14,7 @@
     return;
   }
   $fields = content_fields(NULL, $type);
-  
+
   foreach ($fields as $field_name => $field_attributes) {
     if (isset($profile->$field_name)) {
       $values = array();
@@ -41,8 +41,11 @@
       }
     }
   }
-  
-//  $account->title = $profile->title; // http://drupal.org/node/606364
+
+  if (!empty($account->type) && (in_array($account->type, array_keys(content_profile_get_types('names'))))) {
+    // account is a content profile node, not a user object
+    $account->title = $profile->title;
+  }
 }
 
 function realname_content_profile_get_types() {
