summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2009-11-12 20:43:32 +0000
committerDries Buytaert2009-11-12 20:43:32 +0000
commitc62f56c892919d00384458937b511f84d78e53c1 (patch)
tree1d8c8e170d30dcd5609ec2fe7900a9825de1155e
parent9edcceb07ca10ca985a29f01ce4182dd2d9250f8 (diff)
- Patch #630864 by Amitaibu: fixed notice when fields were added to user, becuase object was not passed correctly.
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 9f20b95..6ca08c5 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2123,7 +2123,7 @@ function user_build_content($account, $build_mode = 'full') {
$account->content = array();
// Build fields content.
- field_attach_prepare_view('user', array($account->uid, $account), $build_mode);
+ field_attach_prepare_view('user', array($account->uid => $account), $build_mode);
$account->content += field_attach_view('user', $account, $build_mode);
// Populate $account->content with a render() array.