mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10965] Make sure all profile fields are always grabbed on viewtopic
PHPBB3-10965
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user