diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-12 20:43:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-12 20:43:32 +0000 |
commit | c62f56c892919d00384458937b511f84d78e53c1 (patch) | |
tree | 1d8c8e170d30dcd5609ec2fe7900a9825de1155e | |
parent | 9edcceb07ca10ca985a29f01ce4182dd2d9250f8 (diff) | |
download | brdo-c62f56c892919d00384458937b511f84d78e53c1.tar.gz brdo-c62f56c892919d00384458937b511f84d78e53c1.tar.bz2 |
- Patch #630864 by Amitaibu: fixed notice when fields were added to user, becuase object was not passed correctly.
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 9f20b955b..6ca08c524 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. |