mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10965] Make sure all profile fields are always grabbed on viewtopic
PHPBB3-10965
This commit is contained in:
parent
19237f5613
commit
2f5692d4bb
1 changed files with 8 additions and 0 deletions
|
@ -456,6 +456,8 @@ class custom_profile
|
|||
|
||||
$user_fields = array();
|
||||
|
||||
$user_ids = $user_id;
|
||||
|
||||
// Go through the fields in correct order
|
||||
foreach (array_keys($this->profile_cache) as $used_ident)
|
||||
{
|
||||
|
@ -464,6 +466,12 @@ class custom_profile
|
|||
$user_fields[$user_id][$used_ident]['value'] = $row['pf_' . $used_ident];
|
||||
$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
|
||||
}
|
||||
|
||||
foreach ($user_ids as $user_id)
|
||||
{
|
||||
$user_fields[$user_id][$used_ident]['value'] = '';
|
||||
$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
|
||||
}
|
||||
}
|
||||
|
||||
return $user_fields;
|
||||
|
|
Loading…
Add table
Reference in a new issue