From c62f56c892919d00384458937b511f84d78e53c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Nov 2009 20:43:32 +0000 Subject: - Patch #630864 by Amitaibu: fixed notice when fields were added to user, becuase object was not passed correctly. --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') 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. -- cgit v1.2.3