diff options
author | Nils Adermann <naderman@naderman.de> | 2012-07-23 23:35:48 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2012-07-23 23:35:48 +0200 |
commit | 296fadfca463327752395ff2124e4a2c99cbacbe (patch) | |
tree | 420a08934dd963f68b0ddc28d2fdeab277254c25 /phpBB/includes/functions_profile_fields.php | |
parent | 2f5692d4bbdf3e5a39d9a22b83354f5db9638fa8 (diff) | |
download | forums-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.php | 7 |
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]; + } } } |