aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-07-23 23:40:09 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-07-23 23:40:09 +0200
commitf6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978 (patch)
treea0588709aa82d53ce1ee4014ab526d6eb83c84bb /phpBB/includes/functions_profile_fields.php
parentdad99dcd8e6d186e9283bf66179d630502491b18 (diff)
parent60acd63c70eeceff06d913df27a29988692dc7a9 (diff)
downloadforums-f6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978.tar
forums-f6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978.tar.gz
forums-f6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978.tar.bz2
forums-f6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978.tar.xz
forums-f6b4aec9d07e1ea8ebfaf0271b2c0c3ac0364978.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10965] Profile data is only grabbed when show_novalue is enabled
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index 035226713a..10af997bff 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -468,8 +468,11 @@ class custom_profile
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];
+ if (!isset($user_fields[$user_id][$used_ident]) && $this->profile_cache[$used_ident]['field_show_novalue'])
+ {
+ $user_fields[$user_id][$used_ident]['value'] = '';
+ $user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
+ }
}
}