### Eclipse Workspace Patch 1.0
#P drupal_test_7
Index: modules/user/user.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.pages.inc,v
retrieving revision 1.34
diff -u -r1.34 user.pages.inc
--- modules/user/user.pages.inc	20 Apr 2009 04:41:35 -0000	1.34
+++ modules/user/user.pages.inc	4 May 2009 23:11:00 -0000
@@ -161,7 +161,7 @@
  *   Contains the default "History" profile data for a user.
  * - $page['content']['#account']:
  *   The user account of the profile being viewed.
- * 
+ *
  * To theme user profiles, copy modules/user/user-profile.tpl.php
  * to your theme directory, and edit it as instructed in that file's comments.
  */
@@ -169,7 +169,7 @@
   drupal_set_title($account->name);
   // Retrieve all profile fields and attach to $account->content.
   user_build_content($account);
-  
+
   $build = $account->content;
   $build += array(
     '#theme' => 'user_profile',
@@ -189,7 +189,7 @@
  */
 function template_preprocess_user_profile(&$variables) {
   $account = $variables['elements']['#account'];
-  
+
   $variables['profile'] = array();
   // Sort sections by weight
   uasort($account->content, 'element_sort');
@@ -201,7 +201,7 @@
   $variables['user_profile'] = implode($variables['profile']);
 
   // Add $FIELD_NAME_rendered variables for fields.
-  $variables += field_attach_preprocess('user', $variables['account']);
+  $variables += field_attach_preprocess('user', $account);
 }
 
 /**
