[ticket/14830] Fix FORM_INVALID error on cpf settings changing

PHPBB3-14830
This commit is contained in:
rxu 2016-10-24 23:22:00 +07:00
parent cefbd39b82
commit a41b16d06a

View file

@ -597,7 +597,7 @@ class acp_profile
if (!sizeof($error)) if (!sizeof($error))
{ {
if (!check_form_key($form_key)) if (($submit || $save) && !check_form_key($form_key))
{ {
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING); trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
} }