mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16604] Adjust code logic
PHPBB3-16604
This commit is contained in:
parent
d80367c5fc
commit
36554f3ce8
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue