From 36554f3ce8588de02bbc71158f9fa1ebe95fdf48 Mon Sep 17 00:00:00 2001 From: rxu Date: Fri, 25 Sep 2020 22:08:18 +0700 Subject: [PATCH] [ticket/16604] Adjust code logic PHPBB3-16604 --- phpBB/includes/acp/acp_board.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 3641e28309..968c9762cc 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -518,7 +518,7 @@ class acp_board { $error[] = $language->lang('AVATAR_NO_UPLOAD_PATH'); } - else + else if (!$submit) { $filesystem = $phpbb_container->get('filesystem'); $avatar_path_exists = $filesystem->exists($phpbb_root_path . $cfg_array['avatar_path']); @@ -526,7 +526,7 @@ class acp_board // Not existing or writable path will be caught on submit by validate_config_vars(). // Display the warning if the directory was changed on the server afterwards - if (!$submit && (!$avatar_path_exists || !$avatar_path_writable)) + if (!$avatar_path_exists || !$avatar_path_writable) { $error[] = $language->lang('AVATAR_NO_UPLOAD_DIR'); }