aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-07-23 23:35:48 +0200
committerNils Adermann <naderman@naderman.de>2012-07-23 23:35:48 +0200
commit296fadfca463327752395ff2124e4a2c99cbacbe (patch)
tree420a08934dd963f68b0ddc28d2fdeab277254c25 /phpBB/includes/functions_profile_fields.php
parent2f5692d4bbdf3e5a39d9a22b83354f5db9638fa8 (diff)
downloadforums-296fadfca463327752395ff2124e4a2c99cbacbe.tar
forums-296fadfca463327752395ff2124e4a2c99cbacbe.tar.gz
forums-296fadfca463327752395ff2124e4a2c99cbacbe.tar.bz2
forums-296fadfca463327752395ff2124e4a2c99cbacbe.tar.xz
forums-296fadfca463327752395ff2124e4a2c99cbacbe.zip
[ticket/10965] Profile data is only grabbed when show_novalue is enabled
PHPBB3-10965
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 8a5571fcce..8573533c2c 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -469,8 +469,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];
+ }
}
}