diff --git a/phpBB/phpbb/ucp/controller/reset_password.php b/phpBB/phpbb/ucp/controller/reset_password.php index 8877a33ba9..d20fafb2a8 100644 --- a/phpBB/phpbb/ucp/controller/reset_password.php +++ b/phpBB/phpbb/ucp/controller/reset_password.php @@ -425,8 +425,7 @@ class reset_password } $this->template->assign_vars([ - 'S_PASSWORD_RESET_ERRORS' => (bool) !empty($errors), - 'PASSWORD_RESET_ERRORS' => implode('
', array_map([$this->language, 'lang'], $errors)), + 'PASSWORD_RESET_ERRORS' => !empty($errors) ? array_map([$this->language, 'lang'], $errors) : '', 'S_IS_PASSWORD_RESET' => true, 'U_RESET_PASSWORD_ACTION' => $this->helper->route('phpbb_ucp_reset_password_controller'), 'S_HIDDEN_FIELDS' => build_hidden_fields([ diff --git a/phpBB/styles/prosilver/template/ucp_reset_password.html b/phpBB/styles/prosilver/template/ucp_reset_password.html index 5273d30d0f..439ebdf1df 100644 --- a/phpBB/styles/prosilver/template/ucp_reset_password.html +++ b/phpBB/styles/prosilver/template/ucp_reset_password.html @@ -10,7 +10,7 @@
{% if S_IS_PASSWORD_RESET %} - {% if S_PASSWORD_RESET_ERRORS %}

{{ PASSWORD_RESET_ERRORS }}

{% endif %} + {% if PASSWORD_RESET_ERRORS %}

{{ PASSWORD_RESET_ERRORS | join('
') | raw }}

{% endif %}