mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch 'prep-release-3.0.11' into develop-olympus
* prep-release-3.0.11: [ticket/10965] Make sure all profile fields are always grabbed on viewtopic
This commit is contained in:
commit
27d9e3133b
1 changed files with 8 additions and 0 deletions
|
@ -456,6 +456,8 @@ class custom_profile
|
||||||
|
|
||||||
$user_fields = array();
|
$user_fields = array();
|
||||||
|
|
||||||
|
$user_ids = $user_id;
|
||||||
|
|
||||||
// Go through the fields in correct order
|
// Go through the fields in correct order
|
||||||
foreach (array_keys($this->profile_cache) as $used_ident)
|
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]['value'] = $row['pf_' . $used_ident];
|
||||||
$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$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;
|
return $user_fields;
|
||||||
|
|
Loading…
Add table
Reference in a new issue