mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-13 21:26:28 +02:00
[ticket/12159] Fix codesniffer complaints due to profilefields and passwords
The two PRs regarding profilefields and passwords manager that were recently merged caused a few codesniffer complaints that are fixed by these changes. PHPBB3-12159
This commit is contained in:
@ -27,7 +27,7 @@ class ucp_remind
|
||||
function main($id, $mode)
|
||||
{
|
||||
global $config, $phpbb_root_path, $phpEx;
|
||||
global $db, $user, $auth, $template, $phpbb_container;;
|
||||
global $db, $user, $auth, $template, $phpbb_container;
|
||||
|
||||
if (!$config['allow_password_reset'])
|
||||
{
|
||||
|
@ -313,7 +313,7 @@ class manager
|
||||
$profile_field = $this->type_collection[$ident_ary['data']['field_type']];
|
||||
$value = $profile_field->get_profile_value($ident_ary['value'], $ident_ary['data']);
|
||||
|
||||
if ($value === NULL)
|
||||
if ($value === null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -327,7 +327,6 @@ class type_date extends type_base
|
||||
return $current_value;
|
||||
}
|
||||
|
||||
|
||||
return parent::get_excluded_options($key, $action, $current_value, $field_data, $step);
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,6 @@ class type_dropdown extends type_base
|
||||
return sizeof(explode("\n", $this->request->variable('lang_options', '', true)));
|
||||
}
|
||||
|
||||
|
||||
return parent::get_excluded_options($key, $action, $current_value, $field_data, $step);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user