mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/14888] Missing check for disabled profile field types
Checks if a profile field type is enabled before using it. PHPBB3-14888
This commit is contained in:
@@ -752,6 +752,10 @@ class acp_profile
|
|||||||
$s_one_need_edit = true;
|
$s_one_need_edit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($this->type_collection[$row['field_type']]))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$profile_field = $this->type_collection[$row['field_type']];
|
$profile_field = $this->type_collection[$row['field_type']];
|
||||||
$template->assign_block_vars('fields', array(
|
$template->assign_block_vars('fields', array(
|
||||||
'FIELD_IDENT' => $row['field_ident'],
|
'FIELD_IDENT' => $row['field_ident'],
|
||||||
|
Reference in New Issue
Block a user