1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-27 13:35:13 +02:00

[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 (!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);
}