Commit 8b8a585a authored by Dries's avatar Dries
Browse files

- Patch #44724: fixed problem with profile.module.

parent 48b367c9
......@@ -218,8 +218,8 @@ function profile_browse() {
$output = '<div id="profile">';
while ($account = db_fetch_object($result)) {
$account = user_load(array('uid' => $account->uid));
$fields = _profile_update_user_fields($fields, $account);
$output .= theme('profile_listing', $account, $fields);
$profile = _profile_update_user_fields($fields, $account);
$output .= theme('profile_listing', $account, $profile);
}
$output .= '</div>';
$output .= theme('pager', NULL, 20);
......
......@@ -218,8 +218,8 @@ function profile_browse() {
$output = '<div id="profile">';
while ($account = db_fetch_object($result)) {
$account = user_load(array('uid' => $account->uid));
$fields = _profile_update_user_fields($fields, $account);
$output .= theme('profile_listing', $account, $fields);
$profile = _profile_update_user_fields($fields, $account);
$output .= theme('profile_listing', $account, $profile);
}
$output .= '</div>';
$output .= theme('pager', NULL, 20);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment