aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2016-12-04 04:28:27 +0100
committerjaviexin <javiexin@gmail.com>2016-12-04 04:28:27 +0100
commit99a99c54128f6b23399fdd2f563e4f3e19eff254 (patch)
tree7bc0fa56ed774624b078a40693fecc5020286941
parent10f430f3936368c842987cbdbc9d9139316bf702 (diff)
downloadforums-99a99c54128f6b23399fdd2f563e4f3e19eff254.tar
forums-99a99c54128f6b23399fdd2f563e4f3e19eff254.tar.gz
forums-99a99c54128f6b23399fdd2f563e4f3e19eff254.tar.bz2
forums-99a99c54128f6b23399fdd2f563e4f3e19eff254.tar.xz
forums-99a99c54128f6b23399fdd2f563e4f3e19eff254.zip
[ticket/14888] Missing check for disabled profile field types
Checks if a profile field type is enabled before using it. PHPBB3-14888
-rw-r--r--phpBB/includes/acp/acp_profile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index 485f849f51..2d4897c47d 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -752,6 +752,10 @@ class acp_profile
$s_one_need_edit = true;
}
+ if (!isset($this->type_collection[$row['field_type']]))
+ {
+ continue;
+ }
$profile_field = $this->type_collection[$row['field_type']];
$template->assign_block_vars('fields', array(
'FIELD_IDENT' => $row['field_ident'],