From a41b16d06ad6c4fe555d72165aca7b3e53b2a011 Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 24 Oct 2016 23:22:00 +0700 Subject: [PATCH] [ticket/14830] Fix FORM_INVALID error on cpf settings changing PHPBB3-14830 --- phpBB/includes/acp/acp_profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 485f849f51..f796900bf0 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -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); }