1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/13867] Add tests

PHPBB3-13867
This commit is contained in:
Tristan Darricau
2016-12-30 15:13:47 +01:00
committed by mrgoldy
parent b1e1ee7d55
commit b3f3886cd9
5 changed files with 174 additions and 1 deletions

View File

@@ -783,6 +783,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']];
$field_block = array(

View File

@@ -665,7 +665,7 @@ class manager
* @param bool $active True to limit output to active profile fields, false for all
* @return array Array with profile field ids as keys and idents as values
*/
private function list_profilefields($profilefield_type_name, $active=false)
private function list_profilefields($profilefield_type_name, $active = false)
{
// Get list of profile fields affected by this operation, if any
$profile_fields = array();