Delete existing uploaded avatar when switching to a gallery image ... hopefully

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2725 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-07-19 16:36:50 +00:00
parent 9aa482c766
commit 2594f7b0a6

View file

@ -200,6 +200,12 @@ if (
{
$user_avatar = $user_avatar_local;
$user_avatar_type = USER_AVATAR_GALLERY;
if ( $userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && @file_exists('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']) )
{
@unlink('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']);
}
}
}
}